diff options
Diffstat (limited to 'spec/frontend/import_entities/import_groups/services/status_poller_spec.js')
-rw-r--r-- | spec/frontend/import_entities/import_groups/services/status_poller_spec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/frontend/import_entities/import_groups/services/status_poller_spec.js b/spec/frontend/import_entities/import_groups/services/status_poller_spec.js index 13d2a95ca14..4a1b85d24e3 100644 --- a/spec/frontend/import_entities/import_groups/services/status_poller_spec.js +++ b/spec/frontend/import_entities/import_groups/services/status_poller_spec.js @@ -4,6 +4,7 @@ import { createAlert } from '~/flash'; import { STATUSES } from '~/import_entities/constants'; import { StatusPoller } from '~/import_entities/import_groups/services/status_poller'; import axios from '~/lib/utils/axios_utils'; +import { HTTP_STATUS_OK } from '~/lib/utils/http_status'; import Poll from '~/lib/utils/poll'; jest.mock('visibilityjs'); @@ -21,7 +22,7 @@ describe('Bulk import status poller', () => { beforeEach(() => { mockAdapter = new MockAdapter(axios); - mockAdapter.onGet(FAKE_POLL_PATH).reply(200, {}); + mockAdapter.onGet(FAKE_POLL_PATH).reply(HTTP_STATUS_OK, {}); updateImportStatus = jest.fn(); poller = new StatusPoller({ updateImportStatus, pollPath: FAKE_POLL_PATH }); }); |