summaryrefslogtreecommitdiff
path: root/spec/frontend/projects/commits/store/actions_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/projects/commits/store/actions_spec.js')
-rw-r--r--spec/frontend/projects/commits/store/actions_spec.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/frontend/projects/commits/store/actions_spec.js b/spec/frontend/projects/commits/store/actions_spec.js
index e2c993b8395..fdb12640b26 100644
--- a/spec/frontend/projects/commits/store/actions_spec.js
+++ b/spec/frontend/projects/commits/store/actions_spec.js
@@ -1,7 +1,7 @@
import axios from 'axios';
import MockAdapter from 'axios-mock-adapter';
import testAction from 'helpers/vuex_action_helper';
-import { deprecatedCreateFlash as createFlash } from '~/flash';
+import createFlash from '~/flash';
import actions from '~/projects/commits/store/actions';
import * as types from '~/projects/commits/store/mutation_types';
import createState from '~/projects/commits/store/state';
@@ -39,7 +39,9 @@ describe('Project commits actions', () => {
actions.receiveAuthorsError(mockDispatchContext);
expect(createFlash).toHaveBeenCalledTimes(1);
- expect(createFlash).toHaveBeenCalledWith('An error occurred fetching the project authors.');
+ expect(createFlash).toHaveBeenCalledWith({
+ message: 'An error occurred fetching the project authors.',
+ });
});
});