Skip to content

Commit 2ac5df3

Browse files
VIA-172 AJ/AS Removed unused function
1 parent 487a1c4 commit 2ac5df3

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test-data/test-helpers-back-link.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
import { screen } from "@testing-library/react";
21
import { Screen } from "@testing-library/dom/types/screen";
32

4-
export const initialiseBackLinkMocks = () => {
5-
jest.mock("next/navigation", () => ({
6-
useRouter: jest.fn(),
7-
}));
8-
9-
jest.mock("@src/app/_components/nhs-frontend/BackLink", () =>
10-
jest.fn(() => <div data-testid="back-link"></div>),
11-
);
12-
};
13-
143
export const assertBackLinkIsPresent = (screen: Screen) => {
154
const backLink = screen.getByTestId("back-link");
165
expect(backLink).toBeInTheDocument();

0 commit comments

Comments
 (0)