From e2df24c5ae7964809f6c20fc24ae3466193f3d87 Mon Sep 17 00:00:00 2001 From: Andreas Coroiu Date: Fri, 31 Mar 2023 17:09:10 +0200 Subject: [PATCH] [EC-598] fix: wrong flags in tests --- .../src/webauthn/services/fido2-authenticator.service.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/common/src/webauthn/services/fido2-authenticator.service.spec.ts b/libs/common/src/webauthn/services/fido2-authenticator.service.spec.ts index 28bbde5c80c..79b52a45de9 100644 --- a/libs/common/src/webauthn/services/fido2-authenticator.service.spec.ts +++ b/libs/common/src/webauthn/services/fido2-authenticator.service.spec.ts @@ -459,7 +459,7 @@ describe("FidoAuthenticatorService", () => { 0xd0, 0x5c, 0x3d, 0xc3, ]) ); - expect(flags).toEqual(new Uint8Array([0b00000001])); // UP = true + expect(flags).toEqual(new Uint8Array([0b01000001])); // UP = true, AD = true expect(counter).toEqual(new Uint8Array([0, 0, 0, 0])); // 0 because of new counter expect(aaguid).toEqual(AAGUID); expect(credentialIdLength).toEqual(new Uint8Array([0, 16])); // 16 bytes because we're using GUIDs