summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src/methods/startAuthentication.test.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-08-16 22:44:36 -0700
committerGitHub <noreply@github.com>2022-08-16 22:44:36 -0700
commit3fee22f217053933cffc8c68ee5236ddaadd3b3f (patch)
tree7899844a57e4492303d900f175a2b4641f2e7ad0 /packages/browser/src/methods/startAuthentication.test.ts
parent2de1972b2461837a83a40a6bbb6cb51719002d3b (diff)
parent963c20b39c54c500aceb032af6d6163448b772e0 (diff)
Merge pull request #257 from MasterKale/fix/rename-browser-supports-webauthn
fix/rename-browser-supports-webauthn
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 31ace90..1936a9e 100644
--- a/packages/browser/src/methods/startAuthentication.test.ts
+++ b/packages/browser/src/methods/startAuthentication.test.ts
@@ -5,7 +5,7 @@ import {
AuthenticationExtensionsClientOutputs,
} from '@simplewebauthn/typescript-types';
-import { browserSupportsWebauthn } from '../helpers/browserSupportsWebauthn';
+import { browserSupportsWebAuthn } from '../helpers/browserSupportsWebAuthn';
import { browserSupportsWebAuthnAutofill } from '../helpers/browserSupportsWebAuthnAutofill';
import { utf8StringToBuffer } from '../helpers/utf8StringToBuffer';
import { bufferToBase64URLString } from '../helpers/bufferToBase64URLString';
@@ -15,11 +15,11 @@ import { webauthnAbortService } from '../helpers/webAuthnAbortService';
import { startAuthentication } from './startAuthentication';
-jest.mock('../helpers/browserSupportsWebauthn');
+jest.mock('../helpers/browserSupportsWebAuthn');
jest.mock('../helpers/browserSupportsWebAuthnAutofill');
const mockNavigatorGet = window.navigator.credentials.get as jest.Mock;
-const mockSupportsWebauthn = browserSupportsWebauthn as jest.Mock;
+const mockSupportsWebAuthn = browserSupportsWebAuthn as jest.Mock;
const mockSupportsAutofill = browserSupportsWebAuthnAutofill as jest.Mock;
const mockAuthenticatorData = 'mockAuthenticatorData';
@@ -58,13 +58,13 @@ beforeEach(() => {
});
});
- mockSupportsWebauthn.mockReturnValue(true);
+ mockSupportsWebAuthn.mockReturnValue(true);
mockSupportsAutofill.mockResolvedValue(true);
});
afterEach(() => {
mockNavigatorGet.mockReset();
- mockSupportsWebauthn.mockReset();
+ mockSupportsWebAuthn.mockReset();
mockSupportsAutofill.mockReset();
});
@@ -126,7 +126,7 @@ test('should return base64url-encoded response values', async () => {
});
test("should throw error if WebAuthn isn't supported", async () => {
- mockSupportsWebauthn.mockReturnValue(false);
+ mockSupportsWebAuthn.mockReturnValue(false);
await expect(startAuthentication(goodOpts1)).rejects.toThrow(
'WebAuthn is not supported in this browser',