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

mutations_spec.js « store « operation_settings « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1854142c89aab00862c3aac621ca53e2a6a7fcb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import mutations from '~/operation_settings/store/mutations';
import createState from '~/operation_settings/store/state';

describe('operation settings mutations', () => {
  let localState;

  beforeEach(() => {
    localState = createState();
  });

  describe('SET_EXTERNAL_DASHBOARD_URL', () => {
    it('sets externalDashboardUrl', () => {
      const mockUrl = 'mockUrl';
      mutations.SET_EXTERNAL_DASHBOARD_URL(localState, mockUrl);

      expect(localState.externalDashboardUrl).toBe(mockUrl);
    });
  });
});