From 4b8c8d340113e0a388191d1d8538c3d8e9d7eba5 Mon Sep 17 00:00:00 2001 From: jorg-vr Date: Thu, 19 Oct 2023 10:39:16 +0200 Subject: [PATCH] Fix js tests --- test/javascript/code_listing.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/test/javascript/code_listing.test.ts b/test/javascript/code_listing.test.ts index 5e28e2d812..98c1d4224c 100644 --- a/test/javascript/code_listing.test.ts +++ b/test/javascript/code_listing.test.ts @@ -19,6 +19,7 @@ beforeEach(async () => { jest.spyOn(util, "fetch").mockImplementation(() => Promise.resolve({ json: () => Promise.resolve({}), + headers: { get: h => h == "X-Pagination" ? "{ total_pages: 1, current_page: 1 }" : "" }, } as Response )); // Bootstrap incorrectly detects jquery, so we need to disable it