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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/jira_connect/subscriptions/components/group_item_name_spec.js')
-rw-r--r--spec/frontend/jira_connect/subscriptions/components/group_item_name_spec.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/frontend/jira_connect/subscriptions/components/group_item_name_spec.js b/spec/frontend/jira_connect/subscriptions/components/group_item_name_spec.js
new file mode 100644
index 00000000000..b5fe08486b1
--- /dev/null
+++ b/spec/frontend/jira_connect/subscriptions/components/group_item_name_spec.js
@@ -0,0 +1,28 @@
+import { shallowMount } from '@vue/test-utils';
+
+import GroupItemName from '~/jira_connect/subscriptions/components/group_item_name.vue';
+import { mockGroup1 } from '../mock_data';
+
+describe('GroupItemName', () => {
+ let wrapper;
+
+ const createComponent = () => {
+ wrapper = shallowMount(GroupItemName, {
+ propsData: {
+ group: mockGroup1,
+ },
+ });
+ };
+
+ afterEach(() => {
+ wrapper.destroy();
+ });
+
+ describe('template', () => {
+ it('matches the snapshot', () => {
+ createComponent();
+
+ expect(wrapper.element).toMatchSnapshot();
+ });
+ });
+});