debian-mirror-gitlab/spec/frontend/whats_new/store/actions_spec.js

18 lines
543 B
JavaScript
Raw Normal View History

2020-10-24 23:57:45 +05:30
import testAction from 'helpers/vuex_action_helper';
import actions from '~/whats_new/store/actions';
import * as types from '~/whats_new/store/mutation_types';
describe('whats new actions', () => {
describe('openDrawer', () => {
it('should commit openDrawer', () => {
testAction(actions.openDrawer, {}, {}, [{ type: types.OPEN_DRAWER }]);
});
});
describe('closeDrawer', () => {
it('should commit closeDrawer', () => {
testAction(actions.closeDrawer, {}, {}, [{ type: types.CLOSE_DRAWER }]);
});
});
});