There was an error while loading. Please reload this page.
1 parent 914af33 commit dd2a01eCopy full SHA for dd2a01e
1 file changed
frontend/src/pages/__tests__/Reservationspage.test.tsx
@@ -6,6 +6,9 @@ import { ReservationsPage } from "../ReservationsPage";
6
jest.mock("../../components/Navbar", () => ({
7
Navbar: () => <nav>Navbar</nav>,
8
}));
9
+jest.mock("../../components/Utils", () => ({
10
+ getCSRFToken: jest.fn().mockResolvedValue("csrf-token"),
11
+}));
12
jest.mock("bootstrap/dist/css/bootstrap.min.css", () => ({}));
13
14
describe("ReservationsPage", () => {
0 commit comments