2018-03-20 10:16:38 -04:00
|
|
|
import mutations from '~/ide/stores/mutations/branch';
|
|
|
|
import state from '~/ide/stores/state';
|
2018-03-20 10:12:48 -04:00
|
|
|
|
|
|
|
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');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|