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

actions_spec.js « router « modules « stores « ide « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1458a43da57ae61f4d29a2a17b1007a9390fefab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import testAction from 'helpers/vuex_action_helper';
import * as actions from '~/ide/stores/modules/router/actions';
import * as types from '~/ide/stores/modules/router/mutation_types';

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 }],
        [],
      );
    });
  });
});