summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src/index.test.ts
blob: b1a1a5d7032c59596992f8f665e50c4ee4c68ab4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import * as index from './index';

test('should export method `startRegistration`', () => {
  expect(index.startRegistration).toBeDefined();
});

test('should export method `startAuthentication`', () => {
  expect(index.startAuthentication).toBeDefined();
});

test('should export method `browserSupportsWebAuthn`', () => {
  expect(index.browserSupportsWebAuthn).toBeDefined();
});

test('should export method `browserSupportsWebAuthnAutofill`', () => {
  expect(index.browserSupportsWebAuthnAutofill).toBeDefined();
});

test('should export method `platformAuthenticatorIsAvailable`', () => {
  expect(index.platformAuthenticatorIsAvailable).toBeDefined();
});

test('should export method `base64URLStringToBuffer`', () => {
  expect(index.base64URLStringToBuffer).toBeDefined();
});

test('should export method `bufferToBase64URLString`', () => {
  expect(index.bufferToBase64URLString).toBeDefined();
});

test('should export singleton `WebAuthnAbortService`', () => {
  expect(index.WebAuthnAbortService).toBeDefined();
});