Skip to content

Commit

Permalink
Fix js tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Oct 19, 2023
1 parent ceb6b93 commit 4b8c8d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/javascript/code_listing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b8c8d3

Please sign in to comment.