debian-mirror-gitlab/spec/javascripts/ide/stores/mutations/branch_spec.js

19 lines
435 B
JavaScript
Raw Normal View History

2018-05-09 12:01:36 +05:30
import mutations from '~/ide/stores/mutations/branch';
import state from '~/ide/stores/state';
describe('Multi-file store branch mutations', () => {
let localState;
beforeEach(() => {
localState = state();
});
describe('SET_CURRENT_BRANCH', () => {
it('sets currentBranch', () => {
mutations.SET_CURRENT_BRANCH(localState, 'master');
expect(localState.currentBranchId).toBe('master');
});
});
});