diff options
author | Matthew Miller <matthew@millerti.me> | 2022-06-20 11:55:30 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2022-06-20 11:55:30 -0700 |
commit | 803f96ca81fa113a23aa8243dfa438f2f778daa9 (patch) | |
tree | 2c70efd8721ef6d59f1284976f38fcf273cd7264 /packages/browser/src/methods/startRegistration.test.ts | |
parent | 86196b555ae6d611dc53d2870a20c918a258c053 (diff) |
Add tests for WebAuthnAbortService
Diffstat (limited to 'packages/browser/src/methods/startRegistration.test.ts')
-rw-r--r-- | packages/browser/src/methods/startRegistration.test.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/browser/src/methods/startRegistration.test.ts b/packages/browser/src/methods/startRegistration.test.ts index 70eb975..93400c4 100644 --- a/packages/browser/src/methods/startRegistration.test.ts +++ b/packages/browser/src/methods/startRegistration.test.ts @@ -215,8 +215,7 @@ test('should return "cable" transport from response', async () => { test('should cancel an existing call when executed again', async () => { const abortSpy = jest.spyOn(AbortController.prototype, 'abort'); // Reset the abort service so we get an accurate call count - // @ts-ignore - webauthnAbortService.controller = undefined; + webauthnAbortService.reset(); // Fire off a request and immediately attempt a second one startRegistration(goodOpts1); |