diff options
author | Matthew Miller <matthew@millerti.me> | 2022-12-27 22:02:11 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-27 22:02:11 -0800 |
commit | 76c7a46b60b1093e9e71f38670175bee45512473 (patch) | |
tree | 686adb3a370e68f76541400740a0b722350d8705 /packages/browser/src/methods/startRegistration.test.ts | |
parent | 495c0881367ec3017553f74c3c826fb68cfd407f (diff) | |
parent | 08f7f69b221ce33b4bfa6108493fe20d0b7f93b0 (diff) |
Merge pull request #320 from MasterKale/feat/webauthn-L3-json-types
feat/webauthn-L3-json-types
Diffstat (limited to 'packages/browser/src/methods/startRegistration.test.ts')
-rw-r--r-- | packages/browser/src/methods/startRegistration.test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/browser/src/methods/startRegistration.test.ts b/packages/browser/src/methods/startRegistration.test.ts index 38ea52e..8ba6f5a 100644 --- a/packages/browser/src/methods/startRegistration.test.ts +++ b/packages/browser/src/methods/startRegistration.test.ts @@ -102,7 +102,7 @@ test('should return base64url-encoded response values', async () => { getPublicKeyAlgorithm: () => -999, }, getClientExtensionResults: () => ({}), - type: 'webauthn.create', + type: 'public-key', authenticatorAttachment: '', }); }); @@ -219,9 +219,9 @@ test('should return "cable" transport from response', async () => { type: 'webauthn.create', }); - const response = await startRegistration(goodOpts1); + const regResponse = await startRegistration(goodOpts1); - expect(response.transports).toEqual(['cable']); + expect(regResponse.response.transports).toEqual(['cable']); }); test('should cancel an existing call when executed again', async () => { |