diff options
author | Matthew Miller <matthew@millerti.me> | 2023-08-18 13:59:11 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2023-08-18 13:59:11 -0700 |
commit | a59634a1a9b0393622fb121fbe229132c01a2624 (patch) | |
tree | cb4eb3fdf778dfc88d6d389b609b1cef6ebb4b4d /packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts | |
parent | e0d32bd2a3a60b4b2fd96a2874eae3ad976483df (diff) |
Use single-quotes and increase line width
Diffstat (limited to 'packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts')
-rw-r--r-- | packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts b/packages/browser/src/helpers/platformAuthenticatorIsAvailable.test.ts index 6b3e90c..6f2b91d 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(); @@ -7,17 +7,17 @@ beforeEach(() => { // @ts-ignore 2741 window.PublicKeyCredential = jest.fn().mockReturnValue(() => {}); - window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable = - mockIsUVPAA.mockResolvedValue(true); + window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable = 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 () => { // This looks weird but it appeases the linter so it's _fiiiine_ delete (window as { PublicKeyCredential: unknown }).PublicKeyCredential; const isAvailable = await platformAuthenticatorIsAvailable(); |