summaryrefslogtreecommitdiff
path: root/spec/frontend/registry/settings/stores/actions_spec.js
blob: 205c3a6ee21c71bdabb880adfa8c3ea73da0296d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import * as actions from '~/registry/settings/stores/actions';
import * as types from '~/registry/settings/stores/mutation_types';
import testAction from 'helpers/vuex_action_helper';

jest.mock('~/flash.js');

describe('Actions Registry Store', () => {
  describe('setInitialState', () => {
    it('should set the initial state', done => {
      testAction(
        actions.setInitialState,
        'foo',
        {},
        [{ type: types.SET_INITIAL_STATE, payload: 'foo' }],
        [],
        done,
      );
    });
  });
});