Welcome to mirror list, hosted at ThFree Co, Russian Federation.

branch_spec.js « mutations « stores « ide « javascripts « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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');
    });
  });
});