From c01fd8466b633c103661652e00e90678f4d9e287 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Sat, 19 Nov 2022 23:54:08 -0800 Subject: Fix issues in Browser due to TypeScript upgrade --- packages/browser/src/methods/startRegistration.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'packages/browser/src/methods/startRegistration.test.ts') diff --git a/packages/browser/src/methods/startRegistration.test.ts b/packages/browser/src/methods/startRegistration.test.ts index 2dc11be..38ea52e 100644 --- a/packages/browser/src/methods/startRegistration.test.ts +++ b/packages/browser/src/methods/startRegistration.test.ts @@ -96,9 +96,14 @@ test('should return base64url-encoded response values', async () => { response: { attestationObject: Buffer.from(mockAttestationObject, 'ascii'), clientDataJSON: Buffer.from(mockClientDataJSON, 'ascii'), + getTransports: () => [], + getAuthenticatorData: () => new Uint8Array(), + getPublicKey: () => null, + getPublicKeyAlgorithm: () => -999, }, getClientExtensionResults: () => ({}), type: 'webauthn.create', + authenticatorAttachment: '', }); }); }); @@ -132,7 +137,9 @@ test('should send extensions to authenticator if present in options', async () = const extensions: AuthenticationExtensionsClientInputs = { credProps: true, appid: 'appidHere', + // @ts-ignore uvm: true, + // @ts-ignore appidExclude: 'appidExcludeHere', }; const optsWithExts: PublicKeyCredentialCreationOptionsJSON = { -- cgit v1.2.3