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

actions_spec.js « embed_group « store « monitoring « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5bdfc506cff703489211430355c2c243f57e14b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// import store from '~/monitoring/stores/embed_group';
import * as actions from '~/monitoring/stores/embed_group/actions';
import * as types from '~/monitoring/stores/embed_group/mutation_types';
import { mockNamespace } from '../../mock_data';

describe('Embed group actions', () => {
  describe('addModule', () => {
    it('adds a module to the store', () => {
      const commit = jest.fn();

      actions.addModule({ commit }, mockNamespace);

      expect(commit).toHaveBeenCalledWith(types.ADD_MODULE, mockNamespace);
    });
  });
});