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

const TEST_PATH = 'test/path/abc';

describe('ide/stores/modules/router/actions', () => {
  describe('push', () => {
    it('commits mutation', () => {
      return testAction(
        actions.push,
        TEST_PATH,
        {},
        [{ type: types.PUSH, payload: TEST_PATH }],
        [],
      );
    });
  });
});