summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src/methods/startAuthentication.test.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2023-08-18 11:33:13 -0700
committerMatthew Miller <matthew@millerti.me>2023-08-18 11:33:13 -0700
commit35b73db9d2e2e023951799dc51d8bf44e7b4391b (patch)
treef7dd77431c79dc37a977fb443e5904eb4e3c8c7c /packages/browser/src/methods/startAuthentication.test.ts
parentaec8ec91988db498ec4ffdb9356feb3e9b0776c5 (diff)
Fix linting issues in browser
Diffstat (limited to 'packages/browser/src/methods/startAuthentication.test.ts')
-rw-r--r--packages/browser/src/methods/startAuthentication.test.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/browser/src/methods/startAuthentication.test.ts b/packages/browser/src/methods/startAuthentication.test.ts
index 62f3061..73770d8 100644
--- a/packages/browser/src/methods/startAuthentication.test.ts
+++ b/packages/browser/src/methods/startAuthentication.test.ts
@@ -50,7 +50,7 @@ const goodOpts2UTF8: PublicKeyCredentialRequestOptionsJSON = {
beforeEach(() => {
// Stub out a response so the method won't throw
- mockNavigatorGet.mockImplementation((): Promise<any> => {
+ mockNavigatorGet.mockImplementation((): Promise<unknown> => {
return new Promise((resolve) => {
resolve({
response: {},
@@ -63,7 +63,7 @@ beforeEach(() => {
mockSupportsAutofill.mockResolvedValue(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;
});
@@ -188,9 +188,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: PublicKeyCredentialRequestOptionsJSON = {
@@ -221,7 +221,7 @@ test("should include extension results", async () => {
};
// Mock extension return values from authenticator
- mockNavigatorGet.mockImplementation((): Promise<any> => {
+ mockNavigatorGet.mockImplementation((): Promise<unknown> => {
return new Promise((resolve) => {
resolve({ response: {}, getClientExtensionResults: () => extResults });
});
@@ -324,7 +324,7 @@ test("should throw error if no acceptable <input> is found", async () => {
test("should return authenticatorAttachment if present", async () => {
// Mock extension return values from authenticator
- mockNavigatorGet.mockImplementation((): Promise<any> => {
+ mockNavigatorGet.mockImplementation((): Promise<unknown> => {
return new Promise((resolve) => {
resolve({
response: {},