summaryrefslogtreecommitdiff
path: root/spec/javascripts/ide/stores/mutations/branch_spec.js
blob: a7167537ef2ad3bb5c97d9ca9e1f82fd1b150a2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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');
    });
  });
});