summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src/methods/startAuthentication.test.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-09-27 21:10:22 -0700
committerMatthew Miller <matthew@millerti.me>2022-09-28 14:51:02 -0700
commit4ea0bd370609294e3cf70f467d234093fc6e87fb (patch)
treeba1d6e1346ba40cddc35f5a9c2f3ca68358eecc2 /packages/browser/src/methods/startAuthentication.test.ts
parenta86025d58417e729171862bdbed69795f7814452 (diff)
Remove reset() from abort service
Diffstat (limited to 'packages/browser/src/methods/startAuthentication.test.ts')
-rw-r--r--packages/browser/src/methods/startAuthentication.test.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/browser/src/methods/startAuthentication.test.ts b/packages/browser/src/methods/startAuthentication.test.ts
index 1936a9e..e112124 100644
--- a/packages/browser/src/methods/startAuthentication.test.ts
+++ b/packages/browser/src/methods/startAuthentication.test.ts
@@ -60,6 +60,10 @@ beforeEach(() => {
mockSupportsWebAuthn.mockReturnValue(true);
mockSupportsAutofill.mockResolvedValue(true);
+
+ // Reset the abort service so we get an accurate call count
+ // @ts-ignore
+ webauthnAbortService.controller = undefined;
});
afterEach(() => {
@@ -228,8 +232,6 @@ test('should support "cable" transport', 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
- webauthnAbortService.reset();
// Fire off a request and immediately attempt a second one
startAuthentication(goodOpts1);