summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src/methods
diff options
context:
space:
mode:
Diffstat (limited to 'packages/browser/src/methods')
-rw-r--r--packages/browser/src/methods/startAuthentication.test.ts3
-rw-r--r--packages/browser/src/methods/startRegistration.test.ts3
2 files changed, 2 insertions, 4 deletions
diff --git a/packages/browser/src/methods/startAuthentication.test.ts b/packages/browser/src/methods/startAuthentication.test.ts
index 0ade8fa..89a0938 100644
--- a/packages/browser/src/methods/startAuthentication.test.ts
+++ b/packages/browser/src/methods/startAuthentication.test.ts
@@ -223,8 +223,7 @@ 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
- // @ts-ignore
- webauthnAbortService.controller = undefined;
+ webauthnAbortService.reset();
// Fire off a request and immediately attempt a second one
startAuthentication(goodOpts1);
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);