diff --git a/test/specs/mounting-options/localVue.spec.js b/test/specs/mounting-options/localVue.spec.js index a638a577e..a64011d1a 100644 --- a/test/specs/mounting-options/localVue.spec.js +++ b/test/specs/mounting-options/localVue.spec.js @@ -14,26 +14,17 @@ describeWithMountingMethods('options.localVue', mountingMethod => { 'mounts component using passed localVue as base Vue', () => { const TestComponent = { - template: ` -
{{test}}
- `, - data: { test: '' } + template: `
{{test}}
` } - const localVue = Vue.extend() - localVue.version = '2.3' + const localVue = createLocalVue() + localVue.prototype.test = 'some value' const wrapper = mountingMethod(TestComponent, { - localVue: localVue, - mocks: { test: 'some value' } + localVue: localVue }) - const HTML = - mountingMethod.name === 'renderToString' ? wrapper : wrapper.html() + const HTML = mountingMethod.name === 'renderToString' + ? wrapper + : wrapper.html() expect(HTML).to.contain('some value') - const freshWrapper = mountingMethod(TestComponent) - const freshHTML = - mountingMethod.name === 'renderToString' - ? freshWrapper - : freshWrapper.html() - expect(freshHTML).to.not.contain('some value') } )