diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-07 12:11:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-07 12:11:43 +0300 |
commit | 378308b6cde44eb1a320b9202ff8946a911f35f6 (patch) | |
tree | 3031a645455dbbcdb2961dd09c15100fa28ed8e1 /spec/frontend/deploy_freeze/store/actions_spec.js | |
parent | 777dc3053f8433a9f5c9cc868325e16eac5d93e5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/deploy_freeze/store/actions_spec.js')
-rw-r--r-- | spec/frontend/deploy_freeze/store/actions_spec.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/frontend/deploy_freeze/store/actions_spec.js b/spec/frontend/deploy_freeze/store/actions_spec.js index ac606f1b182..ad67afdce75 100644 --- a/spec/frontend/deploy_freeze/store/actions_spec.js +++ b/spec/frontend/deploy_freeze/store/actions_spec.js @@ -5,6 +5,7 @@ import * as actions from '~/deploy_freeze/store/actions'; import * as types from '~/deploy_freeze/store/mutation_types'; import getInitialState from '~/deploy_freeze/store/state'; import createFlash from '~/flash'; +import * as logger from '~/lib/logger'; import axios from '~/lib/utils/axios_utils'; import { freezePeriodsFixture, timezoneDataFixture } from '../helpers'; @@ -218,7 +219,7 @@ describe('deploy freeze store actions', () => { }); it('should show flash error and set error in state on delete failure', () => { - const errorSpy = jest.spyOn(console, 'error').mockImplementation(); + jest.spyOn(logger, 'logError').mockImplementation(); const error = new Error(); Api.deleteFreezePeriod.mockRejectedValue(error); @@ -234,7 +235,7 @@ describe('deploy freeze store actions', () => { () => { expect(createFlash).toHaveBeenCalled(); - expect(errorSpy).toHaveBeenCalledWith('[gitlab] Unable to delete deploy freeze:', error); + expect(logger.logError).toHaveBeenCalledWith('Unable to delete deploy freeze', error); }, ); }); |