summaryrefslogtreecommitdiff
path: root/spec/javascripts/repo/stores/mutations/branch_spec.js
blob: 3c06794d5e3dac3100934c02c556bd3fb197752a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import mutations from '~/repo/stores/mutations/branch';
import state from '~/repo/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.currentBranch).toBe('master');
    });
  });
});