You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.error('aio lib state get error due to => %s',error.message)
}
returnnull
}
On error, the function returns null, and never rethrows an Error.
The test "Test Get Key from Cache -> get key from cache throws" in signatureUtils.test.js is an invalid test since the tested function will never throw an error. In fact the test is bogus - it doesn't really test the return value or catch the function's error - it tests an error that it sets up itself.
Function signatureUtils::getKeyFromCache :
aio-lib-events/src/signatureUtils.js
Lines 112 to 134 in bfb5e17
On error, the function returns null, and never rethrows an Error.
The test "Test Get Key from Cache -> get key from cache throws" in signatureUtils.test.js is an invalid test since the tested function will never throw an error. In fact the test is bogus - it doesn't really test the return value or catch the function's error - it tests an error that it sets up itself.
The test is here:
aio-lib-events/test/signatureUtils.test.js
Lines 109 to 121 in bfb5e17
The text was updated successfully, but these errors were encountered: