summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src/index.test.ts
blob: 4c726aabb5fa99c8aba6d84176ebade9c66fcf74 (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
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();
});