Skip to content

Commit

Permalink
Merge pull request #5051 from dodona-edu/fix/js-tests
Browse files Browse the repository at this point in the history
Fix js tests
  • Loading branch information
jorg-vr authored Oct 19, 2023
2 parents ceb6b93 + 4b8c8d3 commit 95a41ee
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 95a41ee

Please sign in to comment.