summaryrefslogtreecommitdiff
path: root/spec/frontend/groups/components/app_spec.js
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-23 09:08:21 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-23 09:08:21 +0000
commit5b1258ee90fb29779d6c9da3f488ebff61e243a3 (patch)
treeff63f9b2f31759d2f20126219997c7230b5b822f /spec/frontend/groups/components/app_spec.js
parent9cc33a92d0d4e79d7ca4a1e7b4400fbbdda33933 (diff)
downloadgitlab-ce-5b1258ee90fb29779d6c9da3f488ebff61e243a3.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/groups/components/app_spec.js')
-rw-r--r--spec/frontend/groups/components/app_spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/groups/components/app_spec.js b/spec/frontend/groups/components/app_spec.js
index 13c9f206033..fea3b547977 100644
--- a/spec/frontend/groups/components/app_spec.js
+++ b/spec/frontend/groups/components/app_spec.js
@@ -11,7 +11,7 @@ import eventHub from '~/groups/event_hub';
import GroupsService from '~/groups/service/groups_service';
import GroupsStore from '~/groups/store/groups_store';
import axios from '~/lib/utils/axios_utils';
-import { HTTP_STATUS_FORBIDDEN } from '~/lib/utils/http_status';
+import { HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_FORBIDDEN } from '~/lib/utils/http_status';
import * as urlUtilities from '~/lib/utils/url_utility';
import setWindowLocation from 'helpers/set_window_location_helper';
@@ -113,7 +113,7 @@ describe('AppComponent', () => {
});
it('should show flash error when request fails', () => {
- mock.onGet('/dashboard/groups.json').reply(400);
+ mock.onGet('/dashboard/groups.json').reply(HTTP_STATUS_BAD_REQUEST);
jest.spyOn(window, 'scrollTo').mockImplementation(() => {});
return vm.fetchGroups({}).then(() => {
@@ -253,7 +253,7 @@ describe('AppComponent', () => {
});
it('should set `isChildrenLoading` back to `false` if load request fails', () => {
- mock.onGet('/dashboard/groups.json').reply(400);
+ mock.onGet('/dashboard/groups.json').reply(HTTP_STATUS_BAD_REQUEST);
vm.toggleChildren(groupItem);