Skip to content

Commit

Permalink
docs: update stub component (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
38elements authored and eddyerburgh committed May 15, 2018
1 parent da95ba0 commit c8292cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en/api/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Vue Test Utils includes a config object to defined options used by Vue Test Util
The stub stored in `config.stubs` is used by default.
Stubs to use in components. These are overwritten by `stubs` passed in the mounting options.

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 `<!---->`.
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>`.

Example:

Expand Down
2 changes: 1 addition & 1 deletion docs/en/api/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ expect(wrapper.find('#fooWrapper').html()).toBe('<div id="fooWrapper"><p>0,text1

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

Stubs child components. Can be an Array of component names to stub, or an object. If `stubs` is an Array, every stub is `<!---->`.
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>`.

Example:

Expand Down

0 comments on commit c8292cc

Please sign in to comment.