Skip to content

Commit 5fb5843

Browse files
38elementseddyerburgh
authored andcommitted
docs: fix docs/en/api/config.md (#195)
1 parent a3fd68f commit 5fb5843

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/en/api/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ vue-test-utils includes a config object to defined options used by vue-test-util
1414

1515
Stubs to use in components. These are overwritten by `stubs` passed in the mounting options.
1616

17-
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.
17+
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 `<!---->`.
1818

1919
Example:
2020

docs/en/api/options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ expect(wrapper.find('div')).toBe(true)
6161

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

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

6666
Example:
6767

test/unit/specs/mount/options/stubs.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ describe('mount.stub', () => {
212212
})
213213
expect(wrapper.contains('time')).to.equal(false)
214214
expect(wrapper.contains('p')).to.equal(false)
215+
expect(wrapper.html()).to.equal('<div><!----></div>')
215216
})
216217

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

0 commit comments

Comments
 (0)