Skip to content

Fix docs/en/api/config.md #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/en/api/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ vue-test-utils includes a config object to defined options used by vue-test-util

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

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 @@ -61,7 +61,7 @@ expect(wrapper.find('div')).toBe(true)

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

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

Example:

Expand Down
1 change: 1 addition & 0 deletions test/unit/specs/mount/options/stubs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ describe('mount.stub', () => {
})
expect(wrapper.contains('time')).to.equal(false)
expect(wrapper.contains('p')).to.equal(false)
expect(wrapper.html()).to.equal('<div><!----></div>')
})

it('throws an error when passed an invalid value as stub', () => {
Expand Down