summaryrefslogtreecommitdiff
path: root/spec/frontend/blob/notebook/notebook_viever_spec.js
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-31 09:07:35 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-31 09:07:35 +0000
commitaa88b9053d72f3f9b69ae5365b77595dcae5c0c3 (patch)
treeaa697939b0ea8a5333d13e92d0bc961bfff6ada7 /spec/frontend/blob/notebook/notebook_viever_spec.js
parente6c495fe40320eb01bf8c4fb132c9f22449ae9d2 (diff)
downloadgitlab-ce-aa88b9053d72f3f9b69ae5365b77595dcae5c0c3.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/blob/notebook/notebook_viever_spec.js')
-rw-r--r--spec/frontend/blob/notebook/notebook_viever_spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/blob/notebook/notebook_viever_spec.js b/spec/frontend/blob/notebook/notebook_viever_spec.js
index e6480c8d874..2e7eadc912d 100644
--- a/spec/frontend/blob/notebook/notebook_viever_spec.js
+++ b/spec/frontend/blob/notebook/notebook_viever_spec.js
@@ -4,7 +4,7 @@ import MockAdapter from 'axios-mock-adapter';
import waitForPromises from 'helpers/wait_for_promises';
import component from '~/blob/notebook/notebook_viewer.vue';
import axios from '~/lib/utils/axios_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 NotebookLab from '~/notebook/index.vue';
describe('iPython notebook renderer', () => {
@@ -55,7 +55,7 @@ describe('iPython notebook renderer', () => {
describe('successful response', () => {
beforeEach(() => {
- mock.onGet(endpoint).reply(200, mockNotebook);
+ mock.onGet(endpoint).reply(HTTP_STATUS_OK, mockNotebook);
mountComponent();
return waitForPromises();
});
@@ -73,7 +73,7 @@ describe('iPython notebook renderer', () => {
beforeEach(() => {
mock.onGet(endpoint).reply(() =>
// eslint-disable-next-line prefer-promise-reject-errors
- Promise.reject({ status: 200 }),
+ Promise.reject({ status: HTTP_STATUS_OK }),
);
mountComponent();