Skip to content

Commit dea5dba

Browse files
38elementseddyerburgh
authored andcommitted
fix: message for logModifiedComponents (#597)
1 parent 5991b66 commit dea5dba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/create-instance/create-instance.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default function createInstance (
7474
if (component.components[c].extendOptions &&
7575
!instanceOptions.components[c]) {
7676
if (options.logModifiedComponents) {
77-
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.`)
77+
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.`)
7878
}
7979
instanceOptions.components[c] = vue.extend(component.components[c])
8080
}

test/specs/mount.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ describeIf(process.env.TEST_ENV !== 'node',
131131
})
132132

133133
it('logs if component is extended', () => {
134-
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.'
134+
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.'
135135
const ChildComponent = Vue.extend({
136136
template: '<span />'
137137
})

0 commit comments

Comments
 (0)