From aa88b9053d72f3f9b69ae5365b77595dcae5c0c3 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 31 Jan 2023 09:07:35 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/frontend/blob/notebook/notebook_viever_spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/frontend/blob/notebook/notebook_viever_spec.js') 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(); -- cgit v1.2.1