diff options
Diffstat (limited to 'spec/frontend/admin/users/components/associations/associations_list_item_spec.js')
-rw-r--r-- | spec/frontend/admin/users/components/associations/associations_list_item_spec.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/frontend/admin/users/components/associations/associations_list_item_spec.js b/spec/frontend/admin/users/components/associations/associations_list_item_spec.js new file mode 100644 index 00000000000..5126df12c24 --- /dev/null +++ b/spec/frontend/admin/users/components/associations/associations_list_item_spec.js @@ -0,0 +1,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(); + }); +}); |