Skip to content

Commit 4678bfb

Browse files
committed
change message
1 parent 58399c5 commit 4678bfb

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/en/api/options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Please use [Puppeteer](https://github.com/karma-runner/karma-chrome-launcher#hea
7575

7676
Provide an object of scoped slots contents to the component. The key corresponds to the slot name. The value can be a template string.
7777

78-
There are two limitations.
78+
There are two limitations.
7979

8080
* This option is only supported in [email protected]+.
8181

packages/create-instance/add-scoped-slots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function addScopedSlots (vm: Component, scopedSlots: Object): void {
77
Object.keys(scopedSlots).forEach((key) => {
88
const template = scopedSlots[key].trim()
99
if (template.substr(0, 9) === '<template') {
10-
throwError('scopedSlots option does not support template tag.')
10+
throwError('the scopedSlots option does not support a template tag as the root element.')
1111
}
1212
vm.$_vueTestUtils_scopedSlots[key] = compileToFunctions(template).render
1313
})

packages/create-instance/create-instance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default function createInstance (
7777
// $FlowIgnore
7878
addScopedSlots(vm, options.scopedSlots)
7979
} else {
80-
throwError('scopedSlots option supports [email protected]+.')
80+
throwError('the scopedSlots option is only supported in [email protected]+.')
8181
}
8282
}
8383

test/specs/mounting-options/scopedSlots.js renamed to test/specs/mounting-options/scopedSlots.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describeWithShallowAndMount('scopedSlots', (mountingMethod) => {
2626
}
2727
})
2828
}
29-
const message = '[vue-test-utils]: scopedSlots option does not support template tag.'
29+
const message = '[vue-test-utils]: the scopedSlots option does not support a template tag as the root element.'
3030
expect(fn).to.throw().with.property('message', message)
3131
}
3232
)
@@ -40,7 +40,7 @@ describeWithShallowAndMount('scopedSlots', (mountingMethod) => {
4040
}
4141
})
4242
}
43-
const message = '[vue-test-utils]: scopedSlots option supports [email protected]+.'
43+
const message = '[vue-test-utils]: the scopedSlots option is only supported in [email protected]+.'
4444
expect(fn).to.throw().with.property('message', message)
4545
}
4646
)

0 commit comments

Comments
 (0)