From 35acee7e1205fc87f3c9a0082a6d05d73df0bb0e Mon Sep 17 00:00:00 2001 From: 38elements <38elements@users.noreply.github.com> Date: Fri, 11 May 2018 21:21:38 +0900 Subject: [PATCH 1/2] Update mount.spec.js --- test/specs/mount.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/specs/mount.spec.js b/test/specs/mount.spec.js index d3bdec784..9c38bf39d 100644 --- a/test/specs/mount.spec.js +++ b/test/specs/mount.spec.js @@ -131,7 +131,7 @@ describeIf(process.env.TEST_ENV !== 'node', }) it('logs if component is extended', () => { - const msg = '[vue-test-utils]: an extended child component ChildComponent has been modified to ensure it has the correct instance properties. This means it is not possible to find the component with a component selector. To find the component, you must stub it manually using the mocks mounting option.' + const msg = '[vue-test-utils]: an extended child component ChildComponent has been modified to ensure it has the correct instance properties. This means it is not possible to find the component with a component selector. To find the component, you must stub it manually using the stubs mounting option.' const ChildComponent = Vue.extend({ template: '' }) From 93b7a4a36ccb360c596da88dee87c3de627c4c32 Mon Sep 17 00:00:00 2001 From: 38elements <38elements@users.noreply.github.com> Date: Fri, 11 May 2018 21:22:17 +0900 Subject: [PATCH 2/2] Update create-instance.js --- packages/create-instance/create-instance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/create-instance/create-instance.js b/packages/create-instance/create-instance.js index 83631d7e9..6236fe243 100644 --- a/packages/create-instance/create-instance.js +++ b/packages/create-instance/create-instance.js @@ -74,7 +74,7 @@ export default function createInstance ( if (component.components[c].extendOptions && !instanceOptions.components[c]) { if (options.logModifiedComponents) { - warn(`an extended child component ${c} has been modified to ensure it has the correct instance properties. This means it is not possible to find the component with a component selector. To find the component, you must stub it manually using the mocks mounting option.`) + warn(`an extended child component ${c} has been modified to ensure it has the correct instance properties. This means it is not possible to find the component with a component selector. To find the component, you must stub it manually using the stubs mounting option.`) } instanceOptions.components[c] = vue.extend(component.components[c]) }