diff options
author | Matthew Miller <matthew@millerti.me> | 2020-05-25 11:50:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-25 11:50:22 -0700 |
commit | d0205b9a4f2b4e304447e8072e4384f52dcc0c51 (patch) | |
tree | f68fe8f67d53efb6faa84d8e35c25a65b315507a /packages/browser/src/helpers/supportsWebauthn.test.ts | |
parent | 2cda08e3fc9935eff5613f08c7f9e4a30cf19c85 (diff) | |
parent | 5ef053d8785afc0cc25936add1b9b9097efbe45e (diff) |
Merge pull request #10 from MasterKale/feature/linting
feature/linting
Diffstat (limited to 'packages/browser/src/helpers/supportsWebauthn.test.ts')
-rw-r--r-- | packages/browser/src/helpers/supportsWebauthn.test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/browser/src/helpers/supportsWebauthn.test.ts b/packages/browser/src/helpers/supportsWebauthn.test.ts index f6b8a8e..6eb42c9 100644 --- a/packages/browser/src/helpers/supportsWebauthn.test.ts +++ b/packages/browser/src/helpers/supportsWebauthn.test.ts @@ -1,4 +1,4 @@ -import supportsWebauthn from './supportsWebauthn' +import supportsWebauthn from './supportsWebauthn'; beforeEach(() => { // @ts-ignore 2741 @@ -17,12 +17,12 @@ test('should return false when browser does not support WebAuthn', () => { test('should return false when window is undefined', () => { // Make window undefined as it is in node environments. // @ts-expect-error - const windowSpy = jest.spyOn(global, "window", "get"); + const windowSpy = jest.spyOn(global, 'window', 'get'); windowSpy.mockImplementation(() => undefined); - expect(window).toBe(undefined) + expect(window).toBe(undefined); expect(supportsWebauthn()).toBe(false); // Restore original window value. - windowSpy.mockRestore() -}) + windowSpy.mockRestore(); +}); |