diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-27 00:11:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-27 00:11:52 +0300 |
commit | e04b8c1e60649802ae4249dae7fa7aaf3f0a83c7 (patch) | |
tree | dc5607b353067e079443b9478572e4a394bfe011 /spec/frontend/single_file_diff_spec.js | |
parent | cea01cb81787f0d2c119b287a5833f2e267324bc (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/single_file_diff_spec.js')
-rw-r--r-- | spec/frontend/single_file_diff_spec.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/frontend/single_file_diff_spec.js b/spec/frontend/single_file_diff_spec.js index a6e532922c8..ff2a4e31e0b 100644 --- a/spec/frontend/single_file_diff_spec.js +++ b/spec/frontend/single_file_diff_spec.js @@ -2,7 +2,7 @@ import MockAdapter from 'axios-mock-adapter'; import $ from 'jquery'; import { setHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; import axios from '~/lib/utils/axios_utils'; -import { HTTP_STATUS_BAD_REQUEST } from '~/lib/utils/http_status'; +import { HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_OK } from '~/lib/utils/http_status'; import SingleFileDiff from '~/single_file_diff'; describe('SingleFileDiff', () => { @@ -11,7 +11,9 @@ describe('SingleFileDiff', () => { beforeEach(() => { mock = new MockAdapter(axios); - mock.onGet(blobDiffPath).replyOnce(200, { html: `<div class="diff-content">MOCKED</div>` }); + mock + .onGet(blobDiffPath) + .replyOnce(HTTP_STATUS_OK, { html: `<div class="diff-content">MOCKED</div>` }); }); afterEach(() => { |