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

associations_list_item_spec.js « associations « components « users « admin « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5126df12c243ba74e7e6a83c629581f272de5b43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { mountExtended } from 'helpers/vue_test_utils_helper';
import AssociationsListItem from '~/admin/users/components/associations/associations_list_item.vue';
import { n__ } from '~/locale';

describe('AssociationsListItem', () => {
  let wrapper;
  const count = 5;

  const createComponent = () => {
    wrapper = mountExtended(AssociationsListItem, {
      propsData: {
        message: n__('%{count} group', '%{count} groups', count),
        count,
      },
    });
  };

  beforeEach(() => {
    createComponent();
  });

  it('renders interpolated message in a `li` element', () => {
    expect(wrapper.html()).toMatchSnapshot();
  });
});