debian-mirror-gitlab/spec/frontend/ide/stores/modules/router/actions_spec.js
2020-10-24 23:57:45 +05:30

19 lines
508 B
JavaScript

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