Skip to content

Commit c8292cc

Browse files
38elementseddyerburgh
authored andcommitted
docs: update stub component (#612)
1 parent da95ba0 commit c8292cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: docs/en/api/config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Vue Test Utils includes a config object to defined options used by Vue Test Util
1515
The stub stored in `config.stubs` is used by default.
1616
Stubs to use in components. These are overwritten by `stubs` passed in the mounting options.
1717

18-
When passing `stubs` as an array in the mounting options, `config.stubs` are converted to an array, and will stub components with a basic component that returns `<!---->`.
18+
When passing `stubs` as an array in the mounting options, `config.stubs` are converted to an array, and will stub components with a basic component that returns `<${component name}-stub>`.
1919

2020
Example:
2121

Diff for: docs/en/api/options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ expect(wrapper.find('#fooWrapper').html()).toBe('<div id="fooWrapper"><p>0,text1
9999

100100
- type: `{ [name: string]: Component | boolean } | Array<string>`
101101

102-
Stubs child components. Can be an Array of component names to stub, or an object. If `stubs` is an Array, every stub is `<!---->`.
102+
Stubs child components. Can be an Array of component names to stub, or an object. If `stubs` is an Array, every stub is `<${component name}-stub>`.
103103

104104
Example:
105105

0 commit comments

Comments
 (0)