Skip to content

Commit

Permalink
[#186] Updated url in creation record test
Browse files Browse the repository at this point in the history
  • Loading branch information
palagdan authored and blcham committed Jul 20, 2024
1 parent 15397e2 commit 58b111d
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.onGet(`${API_URL}/rest/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 58b111d

Please sign in to comment.