diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-27 00:11:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-27 00:11:52 +0300 |
commit | e04b8c1e60649802ae4249dae7fa7aaf3f0a83c7 (patch) | |
tree | dc5607b353067e079443b9478572e4a394bfe011 /spec/frontend/admin | |
parent | cea01cb81787f0d2c119b287a5833f2e267324bc (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/admin')
-rw-r--r-- | spec/frontend/admin/statistics_panel/store/actions_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/frontend/admin/statistics_panel/store/actions_spec.js b/spec/frontend/admin/statistics_panel/store/actions_spec.js index bf97699b1fc..20d5860a459 100644 --- a/spec/frontend/admin/statistics_panel/store/actions_spec.js +++ b/spec/frontend/admin/statistics_panel/store/actions_spec.js @@ -5,7 +5,7 @@ import * as actions from '~/admin/statistics_panel/store/actions'; import * as types from '~/admin/statistics_panel/store/mutation_types'; import getInitialState from '~/admin/statistics_panel/store/state'; import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils'; -import { HTTP_STATUS_INTERNAL_SERVER_ERROR } from '~/lib/utils/http_status'; +import { HTTP_STATUS_INTERNAL_SERVER_ERROR, HTTP_STATUS_OK } from '~/lib/utils/http_status'; import mockStatistics from '../mock_data'; describe('Admin statistics panel actions', () => { @@ -20,7 +20,7 @@ describe('Admin statistics panel actions', () => { describe('fetchStatistics', () => { describe('success', () => { beforeEach(() => { - mock.onGet(/api\/(.*)\/application\/statistics/).replyOnce(200, mockStatistics); + mock.onGet(/api\/(.*)\/application\/statistics/).replyOnce(HTTP_STATUS_OK, mockStatistics); }); it('dispatches success with received data', () => { |