summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src/methods/startRegistration.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/browser/src/methods/startRegistration.test.ts')
-rw-r--r--packages/browser/src/methods/startRegistration.test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/browser/src/methods/startRegistration.test.ts b/packages/browser/src/methods/startRegistration.test.ts
index 38ea52e..19e9185 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 () => {
@@ -239,7 +239,7 @@ test('should return authenticatorAttachment if present', async () => {
return new Promise(resolve => {
resolve({
response: {},
- getClientExtensionResults: () => {},
+ getClientExtensionResults: () => { },
authenticatorAttachment: 'cross-platform',
});
});