diff options
Diffstat (limited to 'spec/frontend/mr_notes/stores/actions_spec.js')
-rw-r--r-- | spec/frontend/mr_notes/stores/actions_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/mr_notes/stores/actions_spec.js b/spec/frontend/mr_notes/stores/actions_spec.js index 568c1b930c9..ae30ed1f0b3 100644 --- a/spec/frontend/mr_notes/stores/actions_spec.js +++ b/spec/frontend/mr_notes/stores/actions_spec.js @@ -1,6 +1,6 @@ import MockAdapter from 'axios-mock-adapter'; import axios from '~/lib/utils/axios_utils'; - +import { HTTP_STATUS_INTERNAL_SERVER_ERROR, HTTP_STATUS_OK } from '~/lib/utils/http_status'; import { createStore } from '~/mr_notes/stores'; describe('MR Notes Mutator Actions', () => { @@ -31,7 +31,7 @@ describe('MR Notes Mutator Actions', () => { mock = new MockAdapter(axios); - mock.onGet(metadata).reply(200, mrMetadata); + mock.onGet(metadata).reply(HTTP_STATUS_OK, mrMetadata); }); afterEach(() => { @@ -54,7 +54,7 @@ describe('MR Notes Mutator Actions', () => { }); it('should set failedToLoadMetadata flag when request fails', async () => { - mock.onGet(metadata).reply(500); + mock.onGet(metadata).reply(HTTP_STATUS_INTERNAL_SERVER_ERROR); await store.dispatch('fetchMrMetadata'); |