summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/authentication/verifyAuthenticationResponse.test.ts
diff options
context:
space:
mode:
authorCorentin Mors <corentin@dashlane.com>2023-07-21 10:20:15 +0200
committerCorentin Mors <corentin@dashlane.com>2023-07-21 10:20:15 +0200
commit22ca0cd6dab119a28794dbaa33d650f97ab107a1 (patch)
treeef67759c99d79b963f67ae5a85d185f15f43cd6e /packages/server/src/authentication/verifyAuthenticationResponse.test.ts
parent57f58b87892fe01ba62f78be1b9ac219decd854c (diff)
Remove unnecessary tests in verify methods
Diffstat (limited to 'packages/server/src/authentication/verifyAuthenticationResponse.test.ts')
-rw-r--r--packages/server/src/authentication/verifyAuthenticationResponse.test.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/server/src/authentication/verifyAuthenticationResponse.test.ts b/packages/server/src/authentication/verifyAuthenticationResponse.test.ts
index c996991..5a760e4 100644
--- a/packages/server/src/authentication/verifyAuthenticationResponse.test.ts
+++ b/packages/server/src/authentication/verifyAuthenticationResponse.test.ts
@@ -227,7 +227,6 @@ test('should support multiple possible origins', async () => {
expect(verification.verified).toEqual(true);
expect(verification.authenticationInfo?.origin).toEqual(assertionOrigin);
- expect(verification.authenticationInfo?.rpID).toEqual('dev.dontneeda.pw');
});
test('should throw an error if origin not in list of expected origins', async () => {
@@ -253,6 +252,7 @@ test('should support multiple possible RP IDs', async () => {
});
expect(verification.verified).toEqual(true);
+ expect(verification.authenticationInfo?.rpID).toEqual('dev.dontneeda.pw');
});
test('should throw an error if RP ID not in list of possible RP IDs', async () => {
@@ -376,8 +376,6 @@ test('should return credential backup info', async () => {
expect(verification.authenticationInfo?.credentialDeviceType).toEqual('singleDevice');
expect(verification.authenticationInfo?.credentialBackedUp).toEqual(false);
- expect(verification.authenticationInfo?.origin).toEqual(assertionOrigin);
- expect(verification.authenticationInfo?.rpID).toEqual('dev.dontneeda.pw');
});
/**