From 4ea0bd370609294e3cf70f467d234093fc6e87fb Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Tue, 27 Sep 2022 21:10:22 -0700 Subject: Remove reset() from abort service --- .../browser/src/helpers/webAuthnAbortService.test.ts | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'packages/browser/src/helpers/webAuthnAbortService.test.ts') diff --git a/packages/browser/src/helpers/webAuthnAbortService.test.ts b/packages/browser/src/helpers/webAuthnAbortService.test.ts index f4e6344..294a894 100644 --- a/packages/browser/src/helpers/webAuthnAbortService.test.ts +++ b/packages/browser/src/helpers/webAuthnAbortService.test.ts @@ -20,23 +20,3 @@ test('should call abort() on existing controller when creating a new signal', () webauthnAbortService.createNewAbortSignal(); expect(abortSpy).toHaveBeenCalledTimes(1); }); - -test('should reset controller', () => { - // Reset the service - webauthnAbortService.reset(); - - // Populate `.controller` - webauthnAbortService.createNewAbortSignal(); - - // Spy on the existing instance of AbortController - const abortSpy = jest.fn(); - // @ts-ignore - webauthnAbortService.controller?.abort = abortSpy; - - // Reset the service - webauthnAbortService.reset(); - - // Generate a new signal, which should NOT call `abort()` because the controller was cleared - webauthnAbortService.createNewAbortSignal(); - expect(abortSpy).toHaveBeenCalledTimes(0); -}); -- cgit v1.2.3