summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkushalpandya <kushal@gitlab.com>2017-08-30 11:22:29 +0530
committerkushalpandya <kushal@gitlab.com>2017-08-30 11:22:29 +0530
commit8d024db629f11eaa575d6aa8f58534ffa372f27b (patch)
tree91db5bd949c160eeaba24ca6c1f235548d9180d7
parent073ab676d9df9cf520d0cbed946f24af8c5b6329 (diff)
downloadgitlab-ce-35010-make-identicon-shared.tar.gz
Update spec initialization with it being a shared component35010-make-identicon-shared
-rw-r--r--spec/javascripts/vue_shared/components/identicon_spec.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/spec/javascripts/vue_shared/components/identicon_spec.js b/spec/javascripts/vue_shared/components/identicon_spec.js
index 66772327503..4f194e5a64e 100644
--- a/spec/javascripts/vue_shared/components/identicon_spec.js
+++ b/spec/javascripts/vue_shared/components/identicon_spec.js
@@ -1,22 +1,18 @@
import Vue from 'vue';
-import groupIdenticonComponent from '~/groups/components/group_identicon.vue';
-import GroupsStore from '~/groups/stores/groups_store';
-import { group1 } from './mock_data';
+import identiconComponent from '~/vue_shared/components/identicon.vue';
const createComponent = () => {
- const Component = Vue.extend(groupIdenticonComponent);
- const store = new GroupsStore();
- const group = store.decorateGroup(group1);
+ const Component = Vue.extend(identiconComponent);
return new Component({
propsData: {
- entityId: group.id,
- entityName: group.name,
+ entityId: 1,
+ entityName: 'entity-name',
},
}).$mount();
};
-describe('GroupIdenticonComponent', () => {
+describe('IdenticonComponent', () => {
let vm;
beforeEach(() => {