From c6df7a38f5706604e6c18cdf51ea97015cb6b758 Mon Sep 17 00:00:00 2001 From: 38elements Date: Tue, 19 Jun 2018 21:30:59 +0900 Subject: [PATCH 1/4] docs: tweaks --- docs/api/config.md | 1 + docs/api/options.md | 6 +++--- docs/api/wrapper-array/setData.md | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/api/config.md b/docs/api/config.md index 0baa99346..87eec15fb 100644 --- a/docs/api/config.md +++ b/docs/api/config.md @@ -101,6 +101,7 @@ VueTestUtils.config.logModifiedComponents = false - default: `true` It suppresses warnings triggered by Vue while mutating component's observables (e.g. props). When set to `false`, all warnings are visible in the console. This is a configurable way which relies on `Vue.config.silent`. + Example: ```js diff --git a/docs/api/options.md b/docs/api/options.md index 171d465e3..046497bba 100644 --- a/docs/api/options.md +++ b/docs/api/options.md @@ -106,9 +106,9 @@ shallowMount(Component, { stubs: { // stub with a specific implementation 'registered-component': Foo, - // create default stub - // another-component is the default stub component name - // the default stub is <${default stub component name}-stub> + // create default stub. + // the component name of default stub is another-component. + // the default stub is <${default stub component name}-stub>. 'another-component': true } }) diff --git a/docs/api/wrapper-array/setData.md b/docs/api/wrapper-array/setData.md index be3dd2b3d..37631e067 100644 --- a/docs/api/wrapper-array/setData.md +++ b/docs/api/wrapper-array/setData.md @@ -1,6 +1,6 @@ ## setData(data) -Sets `Wrapper` `vm` data and forces update on each `Wrapper` in `WrapperArray`. +Sets `Wrapper` `vm` data by each `Wrapper` in `WrapperArray`. **Note every `Wrapper` must contain a Vue instance.** From 4fc4e34cd6792d96a50d0bbb3992d40001062776 Mon Sep 17 00:00:00 2001 From: 38elements <38elements@users.noreply.github.com> Date: Tue, 19 Jun 2018 21:42:29 +0900 Subject: [PATCH 2/4] Update options.md --- docs/api/options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/options.md b/docs/api/options.md index 046497bba..b8d3e3dfb 100644 --- a/docs/api/options.md +++ b/docs/api/options.md @@ -107,7 +107,7 @@ shallowMount(Component, { // stub with a specific implementation 'registered-component': Foo, // create default stub. - // the component name of default stub is another-component. + // the component name of default stub is another-component in this case. // the default stub is <${default stub component name}-stub>. 'another-component': true } From 00be625ad6f1ad90ee986be93fd91093092288c7 Mon Sep 17 00:00:00 2001 From: 38elements <38elements@users.noreply.github.com> Date: Wed, 20 Jun 2018 02:16:39 +0900 Subject: [PATCH 3/4] Update options.md --- docs/api/options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/options.md b/docs/api/options.md index b8d3e3dfb..d10bf02f8 100644 --- a/docs/api/options.md +++ b/docs/api/options.md @@ -108,7 +108,7 @@ shallowMount(Component, { 'registered-component': Foo, // create default stub. // the component name of default stub is another-component in this case. - // the default stub is <${default stub component name}-stub>. + // the default stub is <${the component name of default stub}-stub>. 'another-component': true } }) From fcccf0a0ecf9552ad64f6c6272d7b1f32df54634 Mon Sep 17 00:00:00 2001 From: 38elements <38elements@users.noreply.github.com> Date: Wed, 20 Jun 2018 02:27:14 +0900 Subject: [PATCH 4/4] Update setData.md --- docs/api/wrapper-array/setData.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/wrapper-array/setData.md b/docs/api/wrapper-array/setData.md index 37631e067..d8f4e1bb5 100644 --- a/docs/api/wrapper-array/setData.md +++ b/docs/api/wrapper-array/setData.md @@ -1,6 +1,6 @@ ## setData(data) -Sets `Wrapper` `vm` data by each `Wrapper` in `WrapperArray`. +Sets `Wrapper` `vm` data on each `Wrapper` in `WrapperArray`. **Note every `Wrapper` must contain a Vue instance.**