diff options
Diffstat (limited to 'spec/frontend/clusters_list/store/actions_spec.js')
-rw-r--r-- | spec/frontend/clusters_list/store/actions_spec.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/frontend/clusters_list/store/actions_spec.js b/spec/frontend/clusters_list/store/actions_spec.js index b2ef3c2138a..f4b69053e14 100644 --- a/spec/frontend/clusters_list/store/actions_spec.js +++ b/spec/frontend/clusters_list/store/actions_spec.js @@ -5,7 +5,7 @@ import waitForPromises from 'helpers/wait_for_promises'; import { MAX_REQUESTS } from '~/clusters_list/constants'; import * as actions from '~/clusters_list/store/actions'; import * as types from '~/clusters_list/store/mutation_types'; -import { deprecatedCreateFlash as flashError } from '~/flash'; +import createFlash from '~/flash'; import axios from '~/lib/utils/axios_utils'; import Poll from '~/lib/utils/poll'; import { apiData } from '../mock_data'; @@ -101,7 +101,9 @@ describe('Clusters store actions', () => { }, ], () => { - expect(flashError).toHaveBeenCalledWith(expect.stringMatching('error')); + expect(createFlash).toHaveBeenCalledWith({ + message: expect.stringMatching('error'), + }); done(); }, ); |