diff options
author | Matthew Miller <matthew@millerti.me> | 2020-05-21 17:17:07 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-05-21 17:17:07 -0700 |
commit | a7a3b488e9604014b370363a80e3e2f6f1e7ca21 (patch) | |
tree | 526df57d999f00afb7f05238e02cbd240d0dd5db /packages/server/src/assertion/verifyAssertionResponse.test.ts | |
parent | 445670d6f574c96ded5715e0bf56e3862ab08bf3 (diff) |
Update throw tests in server
Diffstat (limited to 'packages/server/src/assertion/verifyAssertionResponse.test.ts')
-rw-r--r-- | packages/server/src/assertion/verifyAssertionResponse.test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/server/src/assertion/verifyAssertionResponse.test.ts b/packages/server/src/assertion/verifyAssertionResponse.test.ts index ffd05f5..9e5b083 100644 --- a/packages/server/src/assertion/verifyAssertionResponse.test.ts +++ b/packages/server/src/assertion/verifyAssertionResponse.test.ts @@ -33,7 +33,7 @@ test('should throw when response origin is not expected value', () => { 'https://different.address', authenticator, ); - }).toThrow('Assertion origin was an unexpected value'); + }).toThrow(); }); test('should throw when assertion type is not webauthn.create', () => { @@ -49,7 +49,7 @@ test('should throw when assertion type is not webauthn.create', () => { assertionOrigin, authenticator, ); - }).toThrow('Assertion type was an unexpected value'); + }).toThrow(); }); test('should throw error if user was not present', () => { @@ -63,7 +63,7 @@ test('should throw error if user was not present', () => { assertionOrigin, authenticator, ); - }).toThrow('User was NOT present during assertion!'); + }).toThrow(); }); test('should throw error if previous counter value is not less than in response', () => { @@ -80,7 +80,7 @@ test('should throw error if previous counter value is not less than in response' assertionOrigin, badDevice, ); - }).toThrow(`Counter in response did not increment from ${badCounter}`); + }).toThrow(); }); /** |