Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/search_autocomplete_spec.js')
-rw-r--r--spec/frontend/search_autocomplete_spec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/frontend/search_autocomplete_spec.js b/spec/frontend/search_autocomplete_spec.js
index 266f047e9dc..a3098fb81ea 100644
--- a/spec/frontend/search_autocomplete_spec.js
+++ b/spec/frontend/search_autocomplete_spec.js
@@ -5,6 +5,7 @@ import { mockTracking, unmockTracking } from 'helpers/tracking_helper';
import axios from '~/lib/utils/axios_utils';
import initSearchAutocomplete from '~/search_autocomplete';
import '~/lib/utils/common_utils';
+import { HTTP_STATUS_OK } from '~/lib/utils/http_status';
describe('Search autocomplete dropdown', () => {
let widget = null;
@@ -191,7 +192,7 @@ describe('Search autocomplete dropdown', () => {
const axiosMock = new AxiosMockAdapter(axios);
const autocompleteUrl = new RegExp(autocompletePath);
- axiosMock.onGet(autocompleteUrl).reply(200, [
+ axiosMock.onGet(autocompleteUrl).reply(HTTP_STATUS_OK, [
{
category: 'Projects',
id: 1,