diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-19 00:10:01 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-19 00:10:01 +0300 |
commit | 75d101a1c2684059ea22cea9f00ca74d2db78b38 (patch) | |
tree | 67798118ceb61bc22c0825bd670b0448282dbed5 /spec/frontend/error_tracking_settings | |
parent | 830a1f59e2a0f2aab22def4d7463a1c30532764d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/error_tracking_settings')
-rw-r--r-- | spec/frontend/error_tracking_settings/store/actions_spec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/frontend/error_tracking_settings/store/actions_spec.js b/spec/frontend/error_tracking_settings/store/actions_spec.js index bcd816c2ae0..cb335bdbaf6 100644 --- a/spec/frontend/error_tracking_settings/store/actions_spec.js +++ b/spec/frontend/error_tracking_settings/store/actions_spec.js @@ -6,6 +6,7 @@ import * as types from '~/error_tracking_settings/store/mutation_types'; import defaultState from '~/error_tracking_settings/store/state'; import axios from '~/lib/utils/axios_utils'; import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils'; +import { HTTP_STATUS_OK } from '~/lib/utils/http_status'; import { refreshCurrentPage } from '~/lib/utils/url_utility'; import { projectList } from '../mock'; @@ -118,7 +119,7 @@ describe('error tracking settings actions', () => { }); it('should save the page', async () => { - mock.onPatch(TEST_HOST).reply(200); + mock.onPatch(TEST_HOST).reply(HTTP_STATUS_OK); await testAction(actions.updateSettings, null, state, [], [{ type: 'requestSettings' }]); expect(mock.history.patch.length).toBe(1); expect(refreshCurrentPage).toHaveBeenCalled(); |