Make cycle analytics specs compatible w/ BototstrapVue 2

parent 413e010f
...@@ -33,6 +33,8 @@ const mockStubs = { ...@@ -33,6 +33,8 @@ const mockStubs = {
function createComponent({ props = {}, shallow = false, Component = StageEventList, stubs }) { function createComponent({ props = {}, shallow = false, Component = StageEventList, stubs }) {
const func = shallow ? shallowMount : mount; const func = shallow ? shallowMount : mount;
return func(Component, { return func(Component, {
attachToDocument: true,
sync: false,
propsData: { propsData: {
stage: issueStage, stage: issueStage,
events: issueEvents, events: issueEvents,
......
...@@ -47,6 +47,7 @@ function createComponent(props = {}, shallow = false) { ...@@ -47,6 +47,7 @@ function createComponent(props = {}, shallow = false) {
'gl-loading-icon': true, 'gl-loading-icon': true,
}, },
sync: false, sync: false,
attachToDocument: true,
}); });
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment