summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src/helpers/platformAuthenticatorIsAvailable.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/helpers/platformAuthenticatorIsAvailable.test.ts
parentaec8ec91988db498ec4ffdb9356feb3e9b0776c5 (diff)
Fix linting issues in browser
Diffstat (limited to 'packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts')
-rw-r--r--packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts b/packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts
index 3024420..6b3e90c 100644
--- a/packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts
+++ b/packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts
@@ -26,7 +26,8 @@ test("should return false when platform authenticator is unavailable", async ()
});
test("should return false when browser does not support WebAuthn", async () => {
- delete (window as any).PublicKeyCredential;
+ // This looks weird but it appeases the linter so it's _fiiiine_
+ delete (window as { PublicKeyCredential: unknown }).PublicKeyCredential;
const isAvailable = await platformAuthenticatorIsAvailable();
expect(isAvailable).toEqual(false);