diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-19 00:10:01 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-19 00:10:01 +0300 |
commit | 75d101a1c2684059ea22cea9f00ca74d2db78b38 (patch) | |
tree | 67798118ceb61bc22c0825bd670b0448282dbed5 /spec/frontend/blob | |
parent | 830a1f59e2a0f2aab22def4d7463a1c30532764d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/blob')
-rw-r--r-- | spec/frontend/blob/openapi/index_spec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/frontend/blob/openapi/index_spec.js b/spec/frontend/blob/openapi/index_spec.js index d9d65258516..4b5cedcaee9 100644 --- a/spec/frontend/blob/openapi/index_spec.js +++ b/spec/frontend/blob/openapi/index_spec.js @@ -2,6 +2,7 @@ import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; import { setHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; import renderOpenApi from '~/blob/openapi'; +import { HTTP_STATUS_OK } from '~/lib/utils/http_status'; describe('OpenAPI blob viewer', () => { const id = 'js-openapi-viewer'; @@ -10,7 +11,7 @@ describe('OpenAPI blob viewer', () => { beforeEach(async () => { setHTMLFixture(`<div id="${id}" data-endpoint="${mockEndpoint}"></div>`); - mock = new MockAdapter(axios).onGet().reply(200); + mock = new MockAdapter(axios).onGet().reply(HTTP_STATUS_OK); await renderOpenApi(); }); |