summaryrefslogtreecommitdiff
path: root/spec/frontend/whats_new/store/actions_spec.js
blob: d95453c9175e5fe481357406dffd46cdbcad18f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 }]);
    });
  });
});