Skip to content

Commit

Permalink
Fix jest test
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Nov 6, 2023
1 parent 27b0b89 commit 8ac0e54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/src/components/JobInformation/JobInformation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ describe("JobInformation/JobInformation.vue", () => {
beforeEach(() => {
axiosMock = new MockAdapter(axios);
axiosMock.onGet(new RegExp(`api/configuration/decode/*`)).reply(200, { decoded_id: 123 });
axiosMock.onGet("/api/jobs/test_id?full=True").reply(200, jobResponse);
axiosMock
.onGet(
"/api/jobs/test_id?full=True&stdout_position=0&stdout_length=50000&stderr_position=0&stderr_length=50000"
)
.reply(200, jobResponse);
});

afterEach(() => {
Expand Down

0 comments on commit 8ac0e54

Please sign in to comment.