Skip to content
Snippets Groups Projects
Commit 8d024db6 authored by kushalpandya's avatar kushalpandya
Browse files

Update spec initialization with it being a shared component

parent 073ab676
No related branches found
No related tags found
No related merge requests found
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(() => {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment