diff options
Diffstat (limited to 'spec/frontend/lib/utils/favicon_ci_spec.js')
-rw-r--r-- | spec/frontend/lib/utils/favicon_ci_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/frontend/lib/utils/favicon_ci_spec.js b/spec/frontend/lib/utils/favicon_ci_spec.js index 6385af952e7..be647d98f1a 100644 --- a/spec/frontend/lib/utils/favicon_ci_spec.js +++ b/spec/frontend/lib/utils/favicon_ci_spec.js @@ -2,7 +2,7 @@ import MockAdapter from 'axios-mock-adapter'; import axios from '~/lib/utils/axios_utils'; import { setFaviconOverlay, resetFavicon } from '~/lib/utils/favicon'; import { setCiStatusFavicon } from '~/lib/utils/favicon_ci'; -import { HTTP_STATUS_INTERNAL_SERVER_ERROR } from '~/lib/utils/http_status'; +import { HTTP_STATUS_INTERNAL_SERVER_ERROR, HTTP_STATUS_OK } from '~/lib/utils/http_status'; jest.mock('~/lib/utils/favicon'); @@ -29,7 +29,7 @@ describe('~/lib/utils/favicon_ci', () => { `( 'with response=$response', async ({ response, setFaviconOverlayCalls, resetFaviconCalls }) => { - mock.onGet(TEST_URL).replyOnce(200, response); + mock.onGet(TEST_URL).replyOnce(HTTP_STATUS_OK, response); expect(setFaviconOverlay).not.toHaveBeenCalled(); expect(resetFavicon).not.toHaveBeenCalled(); |