summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2023-08-18 11:11:56 -0700
committerMatthew Miller <matthew@millerti.me>2023-08-18 11:11:56 -0700
commitdfb32f4891f6c955c25b2f305fa702cdaf8c5a5e (patch)
tree07c3c57caa54c77a08a209fd3cc509a359ed03e4 /packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts
parentde5e22f5fec4eb980c77f00c586a1179565359d7 (diff)
Format browser
Diffstat (limited to 'packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts')
-rw-r--r--packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts b/packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts
index 3e0b65b..3024420 100644
--- a/packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts
+++ b/packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts
@@ -1,4 +1,4 @@
-import { platformAuthenticatorIsAvailable } from './platformAuthenticatorIsAvailable';
+import { platformAuthenticatorIsAvailable } from "./platformAuthenticatorIsAvailable";
const mockIsUVPAA = jest.fn();
@@ -11,13 +11,13 @@ beforeEach(() => {
mockIsUVPAA.mockResolvedValue(true);
});
-test('should return true when platform authenticator is available', async () => {
+test("should return true when platform authenticator is available", async () => {
const isAvailable = await platformAuthenticatorIsAvailable();
expect(isAvailable).toEqual(true);
});
-test('should return false when platform authenticator is unavailable', async () => {
+test("should return false when platform authenticator is unavailable", async () => {
mockIsUVPAA.mockResolvedValue(false);
const isAvailable = await platformAuthenticatorIsAvailable();
@@ -25,7 +25,7 @@ test('should return false when platform authenticator is unavailable', async ()
expect(isAvailable).toEqual(false);
});
-test('should return false when browser does not support WebAuthn', async () => {
+test("should return false when browser does not support WebAuthn", async () => {
delete (window as any).PublicKeyCredential;
const isAvailable = await platformAuthenticatorIsAvailable();