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

actions_spec.js « store « whats_new « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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 }]);
    });
  });
});