diff options
Diffstat (limited to 'spec/frontend/related_merge_requests')
-rw-r--r-- | spec/frontend/related_merge_requests/store/actions_spec.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/frontend/related_merge_requests/store/actions_spec.js b/spec/frontend/related_merge_requests/store/actions_spec.js index a14096388e6..3bd07c34b6f 100644 --- a/spec/frontend/related_merge_requests/store/actions_spec.js +++ b/spec/frontend/related_merge_requests/store/actions_spec.js @@ -1,6 +1,6 @@ import MockAdapter from 'axios-mock-adapter'; import testAction from 'helpers/vuex_action_helper'; -import { deprecatedCreateFlash as createFlash } from '~/flash'; +import createFlash from '~/flash'; import axios from '~/lib/utils/axios_utils'; import * as actions from '~/related_merge_requests/store/actions'; import * as types from '~/related_merge_requests/store/mutation_types'; @@ -100,7 +100,9 @@ describe('RelatedMergeRequest store actions', () => { [{ type: 'requestData' }, { type: 'receiveDataError' }], () => { expect(createFlash).toHaveBeenCalledTimes(1); - expect(createFlash).toHaveBeenCalledWith(expect.stringMatching('Something went wrong')); + expect(createFlash).toHaveBeenCalledWith({ + message: expect.stringMatching('Something went wrong'), + }); done(); }, |