diff options
Diffstat (limited to 'spec/frontend/api/groups_api_spec.js')
-rw-r--r-- | spec/frontend/api/groups_api_spec.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/frontend/api/groups_api_spec.js b/spec/frontend/api/groups_api_spec.js index c354d8a9416..e064ee9fec4 100644 --- a/spec/frontend/api/groups_api_spec.js +++ b/spec/frontend/api/groups_api_spec.js @@ -55,7 +55,9 @@ describe('GroupsApi', () => { const params = { page: 1 }; const expectedUrl = `${mockUrlRoot}/api/${mockApiVersion}/groups/${mockGroupId}/transfer_locations`; - mock.onGet(expectedUrl).replyOnce(200, { data: getGroupTransferLocationsResponse }); + mock + .onGet(expectedUrl) + .replyOnce(HTTP_STATUS_OK, { data: getGroupTransferLocationsResponse }); await expect(getGroupTransferLocations(mockGroupId, params)).resolves.toMatchObject({ data: { data: getGroupTransferLocationsResponse }, |