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