diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-09 18:08:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-09 18:08:32 +0300 |
commit | e9de69b545c25c9cb7fd410f9bf8ba34c6bb727b (patch) | |
tree | a59ae937a12f9e03e7c4269af4a3a0fcb1e540b2 /spec/frontend/lib | |
parent | 1935f3e81b99c00697bf0b4d6a44d64068b34745 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/lib')
-rw-r--r-- | spec/frontend/lib/utils/poll_until_complete_spec.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/frontend/lib/utils/poll_until_complete_spec.js b/spec/frontend/lib/utils/poll_until_complete_spec.js index 3ce17ecfc8c..e8ca2bddc4e 100644 --- a/spec/frontend/lib/utils/poll_until_complete_spec.js +++ b/spec/frontend/lib/utils/poll_until_complete_spec.js @@ -1,7 +1,10 @@ import AxiosMockAdapter from 'axios-mock-adapter'; import { TEST_HOST } from 'helpers/test_constants'; import axios from '~/lib/utils/axios_utils'; -import httpStatusCodes, { HTTP_STATUS_NO_CONTENT } from '~/lib/utils/http_status'; +import httpStatusCodes, { + HTTP_STATUS_NO_CONTENT, + HTTP_STATUS_NOT_FOUND, +} from '~/lib/utils/http_status'; import pollUntilComplete from '~/lib/utils/poll_until_complete'; const endpoint = `${TEST_HOST}/foo`; @@ -66,7 +69,7 @@ describe('pollUntilComplete', () => { const errorMessage = 'error message'; beforeEach(() => { - mock.onGet(endpoint).replyOnce(httpStatusCodes.NOT_FOUND, errorMessage); + mock.onGet(endpoint).replyOnce(HTTP_STATUS_NOT_FOUND, errorMessage); }); it('rejects with the error response', () => |