debian-mirror-gitlab/spec/frontend/boards/stores/actions_spec.js

83 lines
1.8 KiB
JavaScript
Raw Normal View History

2019-09-04 21:01:54 +05:30
import actions from '~/boards/stores/actions';
2020-06-23 00:09:42 +05:30
import * as types from '~/boards/stores/mutation_types';
import testAction from 'helpers/vuex_action_helper';
2019-09-04 21:01:54 +05:30
const expectNotImplemented = action => {
it('is not implemented', () => {
expect(action).toThrow(new Error('Not implemented!'));
});
};
describe('setEndpoints', () => {
2020-06-23 00:09:42 +05:30
it('sets endpoints object', () => {
const mockEndpoints = {
foo: 'bar',
bar: 'baz',
};
return testAction(
actions.setEndpoints,
mockEndpoints,
{},
[{ type: types.SET_ENDPOINTS, payload: mockEndpoints }],
[],
);
});
2019-09-04 21:01:54 +05:30
});
describe('fetchLists', () => {
expectNotImplemented(actions.fetchLists);
});
describe('generateDefaultLists', () => {
expectNotImplemented(actions.generateDefaultLists);
});
describe('createList', () => {
expectNotImplemented(actions.createList);
});
describe('updateList', () => {
expectNotImplemented(actions.updateList);
});
describe('deleteList', () => {
expectNotImplemented(actions.deleteList);
});
describe('fetchIssuesForList', () => {
expectNotImplemented(actions.fetchIssuesForList);
});
describe('moveIssue', () => {
expectNotImplemented(actions.moveIssue);
});
describe('createNewIssue', () => {
expectNotImplemented(actions.createNewIssue);
});
describe('fetchBacklog', () => {
expectNotImplemented(actions.fetchBacklog);
});
describe('bulkUpdateIssues', () => {
expectNotImplemented(actions.bulkUpdateIssues);
});
describe('fetchIssue', () => {
expectNotImplemented(actions.fetchIssue);
});
describe('toggleIssueSubscription', () => {
expectNotImplemented(actions.toggleIssueSubscription);
});
describe('showPage', () => {
expectNotImplemented(actions.showPage);
});
describe('toggleEmptyState', () => {
expectNotImplemented(actions.toggleEmptyState);
});