diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-18 21:10:01 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-18 21:10:01 +0000 |
commit | 75d101a1c2684059ea22cea9f00ca74d2db78b38 (patch) | |
tree | 67798118ceb61bc22c0825bd670b0448282dbed5 /spec/frontend/lib/utils/axios_utils_spec.js | |
parent | 830a1f59e2a0f2aab22def4d7463a1c30532764d (diff) | |
download | gitlab-ce-75d101a1c2684059ea22cea9f00ca74d2db78b38.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/lib/utils/axios_utils_spec.js')
-rw-r--r-- | spec/frontend/lib/utils/axios_utils_spec.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/frontend/lib/utils/axios_utils_spec.js b/spec/frontend/lib/utils/axios_utils_spec.js index 1585a38ae86..27c580a4d8b 100644 --- a/spec/frontend/lib/utils/axios_utils_spec.js +++ b/spec/frontend/lib/utils/axios_utils_spec.js @@ -3,14 +3,15 @@ import AxiosMockAdapter from 'axios-mock-adapter'; import axios from '~/lib/utils/axios_utils'; +import { HTTP_STATUS_INTERNAL_SERVER_ERROR, HTTP_STATUS_OK } from '~/lib/utils/http_status'; describe('axios_utils', () => { let mock; beforeEach(() => { mock = new AxiosMockAdapter(axios); - mock.onAny('/ok').reply(200); - mock.onAny('/err').reply(500); + mock.onAny('/ok').reply(HTTP_STATUS_OK); + mock.onAny('/err').reply(HTTP_STATUS_INTERNAL_SERVER_ERROR); // eslint-disable-next-line jest/no-standalone-expect expect(axios.countActiveRequests()).toBe(0); }); |