diff --git a/docs/en/api/config.md b/docs/en/api/config.md index 6f44dd639..c5aa5b530 100644 --- a/docs/en/api/config.md +++ b/docs/en/api/config.md @@ -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: diff --git a/docs/en/api/options.md b/docs/en/api/options.md index cb2d6f6ed..9aa8c2c20 100644 --- a/docs/en/api/options.md +++ b/docs/en/api/options.md @@ -61,7 +61,7 @@ expect(wrapper.find('div')).toBe(true) - type: `{ [name: string]: Component | boolean } | Array` -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: diff --git a/test/unit/specs/mount/options/stubs.spec.js b/test/unit/specs/mount/options/stubs.spec.js index 9ccbaddef..ce94555cd 100644 --- a/test/unit/specs/mount/options/stubs.spec.js +++ b/test/unit/specs/mount/options/stubs.spec.js @@ -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('
') }) it('throws an error when passed an invalid value as stub', () => {