diff options
author | Matthew Miller <matthew@millerti.me> | 2023-08-18 11:33:13 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2023-08-18 11:33:13 -0700 |
commit | 35b73db9d2e2e023951799dc51d8bf44e7b4391b (patch) | |
tree | f7dd77431c79dc37a977fb443e5904eb4e3c8c7c /packages/browser/src/methods/startRegistration.test.ts | |
parent | aec8ec91988db498ec4ffdb9356feb3e9b0776c5 (diff) |
Fix linting issues in browser
Diffstat (limited to 'packages/browser/src/methods/startRegistration.test.ts')
-rw-r--r-- | packages/browser/src/methods/startRegistration.test.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/browser/src/methods/startRegistration.test.ts b/packages/browser/src/methods/startRegistration.test.ts index d9ea0f7..c094278 100644 --- a/packages/browser/src/methods/startRegistration.test.ts +++ b/packages/browser/src/methods/startRegistration.test.ts @@ -53,7 +53,7 @@ const goodOpts1: PublicKeyCredentialCreationOptionsJSON = { beforeEach(() => { // Stub out a response so the method won't throw - mockNavigatorCreate.mockImplementation((): Promise<any> => { + mockNavigatorCreate.mockImplementation((): Promise<unknown> => { return new Promise((resolve) => { resolve({ response: {}, getClientExtensionResults: () => ({}) }); }); @@ -62,7 +62,7 @@ beforeEach(() => { mockSupportsWebauthn.mockReturnValue(true); // Reset the abort service so we get an accurate call count - // @ts-ignore + // @ts-ignore: Ignore the fact that `controller` is private webauthnAbortService.controller = undefined; }); @@ -146,9 +146,9 @@ test("should send extensions to authenticator if present in options", async () = const extensions: AuthenticationExtensionsClientInputs = { credProps: true, appid: "appidHere", - // @ts-ignore + // @ts-ignore: Send arbitrary extensions uvm: true, - // @ts-ignore + // @ts-ignore: Send arbitrary extensions appidExclude: "appidExcludeHere", }; const optsWithExts: PublicKeyCredentialCreationOptionsJSON = { @@ -181,7 +181,7 @@ test("should include extension results", async () => { }; // Mock extension return values from authenticator - mockNavigatorCreate.mockImplementation((): Promise<any> => { + mockNavigatorCreate.mockImplementation((): Promise<unknown> => { return new Promise((resolve) => { resolve({ response: {}, getClientExtensionResults: () => extResults }); }); @@ -247,7 +247,7 @@ test("should cancel an existing call when executed again", async () => { test("should return authenticatorAttachment if present", async () => { // Mock extension return values from authenticator - mockNavigatorCreate.mockImplementation((): Promise<any> => { + mockNavigatorCreate.mockImplementation((): Promise<unknown> => { return new Promise((resolve) => { resolve({ response: {}, @@ -269,7 +269,7 @@ test("should return convenience values if getters present", async () => { * that's already buried in the response. */ // Mock extension return values from authenticator - mockNavigatorCreate.mockImplementation((): Promise<any> => { + mockNavigatorCreate.mockImplementation((): Promise<unknown> => { return new Promise((resolve) => { resolve({ response: { @@ -296,7 +296,7 @@ test("should not return convenience values if getters missing", async () => { * that's already buried in the response. */ // Mock extension return values from authenticator - mockNavigatorCreate.mockImplementation((): Promise<any> => { + mockNavigatorCreate.mockImplementation((): Promise<unknown> => { return new Promise((resolve) => { resolve({ response: {}, |