diff options
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(); }); /** |