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

actions_spec.js « store « eks_cluster « create_cluster « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3744ddb3dc6915d20c0909bd58e80ae483c256ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import testAction from 'helpers/vuex_action_helper';

import createState from '~/create_cluster/eks_cluster/store/state';
import * as types from '~/create_cluster/eks_cluster/store/mutation_types';
import * as actions from '~/create_cluster/eks_cluster/store/actions';

describe('EKS Cluster Store Actions', () => {
  describe('setRegion', () => {
    it(`commits ${types.SET_REGION} mutation`, () => {
      const region = { name: 'west-1' };

      testAction(actions.setRegion, { region }, createState(), [
        { type: types.SET_REGION, payload: { region } },
      ]);
    });
  });
});