diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-01 03:07:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-01 03:07:51 +0300 |
commit | 4aaadcc49070b085d63377c004c5632b6d1b2b4c (patch) | |
tree | 0d8c890fd1ce0ca22ec579a91fcd84f92c50404f /spec/frontend/ide/services | |
parent | 9e83d078577a9c066f21fcef1355f800ad895c9c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/ide/services')
-rw-r--r-- | spec/frontend/ide/services/index_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/ide/services/index_spec.js b/spec/frontend/ide/services/index_spec.js index cf373ed46de..623dee387e5 100644 --- a/spec/frontend/ide/services/index_spec.js +++ b/spec/frontend/ide/services/index_spec.js @@ -109,7 +109,7 @@ describe('IDE services', () => { }; mock = new MockAdapter(axios); - mock.onGet(file.rawPath).reply(200, 'raw content'); + mock.onGet(file.rawPath).reply(HTTP_STATUS_OK, 'raw content'); jest.spyOn(axios, 'get'); }); @@ -206,7 +206,7 @@ describe('IDE services', () => { filePath, )}`, ) - .reply(200, TEST_FILE_CONTENTS); + .reply(HTTP_STATUS_OK, TEST_FILE_CONTENTS); }); it('fetches file content', () => @@ -231,7 +231,7 @@ describe('IDE services', () => { mock .onGet(`${TEST_RELATIVE_URL_ROOT}/${TEST_PROJECT_ID}/-/files/${TEST_COMMIT_SHA}`) - .reply(200, [TEST_FILE_PATH]); + .reply(HTTP_STATUS_OK, [TEST_FILE_PATH]); }); afterEach(() => { |