Skip to content

Commit

Permalink
[#186] Updated mock get request to check if the user has institution …
Browse files Browse the repository at this point in the history
…or not
  • Loading branch information
palagdan committed Jul 19, 2024
1 parent 6691135 commit bd243ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/__tests__/actions/RecordActions.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ describe("Record asynchronous actions", function () {
{ type: ActionConstants.PUBLISH_MESSAGE, message: successMessage("record.save-success") },
{ type: ActionConstants.LOAD_RECORDS_SUCCESS, records },
];

mockApi.onGet("/users/current").reply(200, { institution: "Test Institution" });
mockApi.onPost(`${API_URL}/rest/records`).reply(200, null, { location });
mockApi.onGet(`${API_URL}/rest/records`).reply(200, records, {});

Expand Down

0 comments on commit bd243ae

Please sign in to comment.