@@ -16,7 +16,7 @@ class MockJoseUtility {
1616 parseJwt ( ...args ) {
1717 this . parseJwtWasCalled = true ;
1818 if ( this . parseJwtResult ) {
19- Log . info ( "MockJoseUtility.parseJwt" , this . parseJwtResult )
19+ Log . debug ( "MockJoseUtility.parseJwt" , this . parseJwtResult )
2020 return this . parseJwtResult ;
2121 }
2222 return JoseUtil . parseJwt ( ...args ) ;
@@ -25,7 +25,7 @@ class MockJoseUtility {
2525 validateJwt ( ...args ) {
2626 this . validateJwtWasCalled = true ;
2727 if ( this . validateJwtResult ) {
28- Log . info ( "MockJoseUtility.validateJwt" , this . validateJwtResult )
28+ Log . debug ( "MockJoseUtility.validateJwt" , this . validateJwtResult )
2929 return this . validateJwtResult ;
3030 }
3131 return JoseUtil . validateJwt ( ...args ) ;
@@ -34,7 +34,7 @@ class MockJoseUtility {
3434 hashString ( ...args ) {
3535 this . hashStringWasCalled = true ;
3636 if ( this . hashStringResult ) {
37- Log . info ( "MockJoseUtility.hashString" , this . hashStringResult )
37+ Log . debug ( "MockJoseUtility.hashString" , this . hashStringResult )
3838 return this . hashStringResult ;
3939 }
4040 return JoseUtil . hashString ( ...args ) ;
@@ -43,7 +43,7 @@ class MockJoseUtility {
4343 hexToBase64Url ( ...args ) {
4444 this . hexToBase64UrlCalled = true ;
4545 if ( this . hexToBase64UrlResult ) {
46- Log . info ( "MockJoseUtility.hexToBase64Url" , this . hexToBase64UrlResult )
46+ Log . debug ( "MockJoseUtility.hexToBase64Url" , this . hexToBase64UrlResult )
4747 return this . hexToBase64UrlResult ;
4848 }
4949 return JoseUtil . hexToBase64Url ( ...args ) ;
@@ -67,15 +67,15 @@ class MockResponseValidator extends ResponseValidator {
6767 }
6868
6969 _mock ( name , ...args ) {
70- Log . info ( "mock called" , name ) ;
70+ Log . debug ( "mock called" , name ) ;
7171 this [ name + "WasCalled" ] = true ;
7272
7373 if ( this [ name + "Result" ] ) {
74- Log . info ( "mock returning result" , this [ name + "Result" ] ) ;
74+ Log . debug ( "mock returning result" , this [ name + "Result" ] ) ;
7575 return this [ name + "Result" ] ;
7676 }
7777
78- Log . info ( "mock calling super" ) ;
78+ Log . debug ( "mock calling super" ) ;
7979 return super [ name ] ( ...args ) ;
8080 }
8181
@@ -837,7 +837,7 @@ describe("ResponseValidator", function () {
837837 } ;
838838
839839 subject . _validateAccessToken ( stubResponse ) . then ( null , err => {
840- Log . info ( err ) ;
840+ Log . debug ( err ) ;
841841 err . message . should . contain ( "id_token" ) ;
842842 done ( ) ;
843843 } ) ;
@@ -852,7 +852,7 @@ describe("ResponseValidator", function () {
852852 mockJoseUtility . parseJwtResult = { header : { alg : "bad" } } ;
853853
854854 subject . _validateAccessToken ( stubResponse ) . then ( null , err => {
855- Log . info ( err ) ;
855+ Log . debug ( err ) ;
856856 err . message . should . contain ( "alg" ) ;
857857 done ( ) ;
858858 } ) ;
0 commit comments