diff --git a/src/app/content/hooks/receivePageNotFoundId.spec.ts b/src/app/content/hooks/receivePageNotFoundId.spec.ts index 5d86e165e5..601615946f 100644 --- a/src/app/content/hooks/receivePageNotFoundId.spec.ts +++ b/src/app/content/hooks/receivePageNotFoundId.spec.ts @@ -1,9 +1,6 @@ import createTestServices from '../../../test/createTestServices'; import createTestStore from '../../../test/createTestStore'; -import { notFound } from '../../errors/routes'; -import { replace } from '../../navigation/actions'; import { createRouterService } from '../../navigation/routerService'; -import { AnyMatch } from '../../navigation/types'; import { MiddlewareAPI, Store } from '../../types'; import { assertWindow } from '../../utils'; import { receivePageNotFoundId } from '../actions'; @@ -23,7 +20,6 @@ describe('receivePageNotFoundId hook', () => { let store: Store; let helpers: MiddlewareAPI & ReturnType; let historyReplaceSpy: jest.SpyInstance; - let dispatch: jest.SpyInstance; let fetchBackup: any; let window: Window; @@ -47,8 +43,6 @@ describe('receivePageNotFoundId hook', () => { pathname: '/books/physics/pages/1-introduction301', } as any; - dispatch = jest.spyOn(helpers, 'dispatch'); - historyReplaceSpy = jest.spyOn(helpers.history, 'replace') .mockImplementation(jest.fn());