Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/boards/stores/actions_spec.js')
-rw-r--r--spec/frontend/boards/stores/actions_spec.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/spec/frontend/boards/stores/actions_spec.js b/spec/frontend/boards/stores/actions_spec.js
index d23393db60d..0debca1310a 100644
--- a/spec/frontend/boards/stores/actions_spec.js
+++ b/spec/frontend/boards/stores/actions_spec.js
@@ -1,4 +1,6 @@
import actions from '~/boards/stores/actions';
+import * as types from '~/boards/stores/mutation_types';
+import testAction from 'helpers/vuex_action_helper';
const expectNotImplemented = action => {
it('is not implemented', () => {
@@ -7,7 +9,20 @@ const expectNotImplemented = action => {
};
describe('setEndpoints', () => {
- expectNotImplemented(actions.setEndpoints);
+ it('sets endpoints object', () => {
+ const mockEndpoints = {
+ foo: 'bar',
+ bar: 'baz',
+ };
+
+ return testAction(
+ actions.setEndpoints,
+ mockEndpoints,
+ {},
+ [{ type: types.SET_ENDPOINTS, payload: mockEndpoints }],
+ [],
+ );
+ });
});
describe('fetchLists', () => {