Skip to content

Commit dcd6a9d

Browse files
Rafael-Martinseddyerburgh
authored andcommitted
docs: change paths and remove text from WrapperArray
* fix: docs * fix: links docs * doc: remove WrapperArray text, and edit README
1 parent 3bb075b commit dcd6a9d

File tree

13 files changed

+29
-27
lines changed

13 files changed

+29
-27
lines changed

docs/en/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
# vue-test-utils
1+
# vue-test-utils
2+
3+
vue-test-utils is the official test library for Vue.js. It provides methods for unit testing Vue components.
4+
5+
[Documentation Summary](SUMMARY.md)

docs/en/SUMMARY.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
## Table of Contents
22

3-
* [Introduction](README.md)
43
* [API](api/README.md)
54
* [createLocalVue](api/createLocalVue.md)
65
* [mount](api/mount.md)
@@ -36,7 +35,6 @@
3635
* [update](api/wrapper-array/update.md)
3736
* [setData](api/wrapper-array/setData.md)
3837
* [setProps](api/wrapper-array/setProps.md)
39-
* [text](api/wrapper-array/text.md)
4038
* [trigger](api/wrapper-array/trigger.md)
4139
* [selectors](api/selectors.md)
4240
* [common gotchas](common-gotchas.md)

docs/en/api/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
## [mount](/api/mount.md)
2-
## [shallow](/api/shallow.md)
3-
## [selectors](/api/selectors.md)
1+
## [mount](/docs/en/api/mount.md)
2+
## [shallow](/docs/en/api/shallow.md)
3+
## [selectors](/docs/en/api/selectors.md)

docs/en/api/mount.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99

1010
- **Options:**
1111

12-
See [options](/api/options.md)
12+
See [options](/docs/en/api/options.md)
1313

1414
- **Usage:**
1515

16-
Returns [`Wrapper`](/api/wrapper/README.md) of first DOM node or Vue component matching selector.
16+
Returns [`Wrapper`](/docs/en/api/wrapper/README.md) of first DOM node or Vue component matching selector.
1717

18-
Use any valid [selector](/api/selectors.md).
18+
Use any valid [selector](/docs/en/api/selectors.md).
1919

2020
**Without options:**
2121

@@ -133,4 +133,4 @@ describe('Foo', () => {
133133
})
134134
```
135135

136-
- **See also:** [Wrapper](/api/wrapper/README.md)
136+
- **See also:** [Wrapper](/docs/en/api/wrapper/README.md)

docs/en/api/options.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Vue options are passed to the component when a new instance is created. , e.g. `
2222

2323
`options` (`Object`): a Vue options object. Vue options are passed to the component when a new instance is created. , e.g. `store`, `propsData`. For full list, see the [Vue API](https://vuejs.org/v2/api/). Also takes vue-test-utils options:
2424

25-
`options.attachToDocument` (`boolean`): Component will attach to DOM when rendered. This can be used with [`hasStyle`](/api/wrapper/hasStyle.md) to check multi element CSS selectors
25+
`options.attachToDocument` (`boolean`): Component will attach to DOM when rendered. This can be used with [`hasStyle`](/docs/en/api/wrapper/hasStyle.md) to check multi element CSS selectors
2626

2727
`options.attrs` (`Object`): Attrs object to pass to component.
2828

@@ -34,7 +34,7 @@ Vue options are passed to the component when a new instance is created. , e.g. `
3434

3535
`options.intercept` (`Object`): Add globals to Vue instance.
3636

37-
`options.localVue` (`Object`): vue class to use in `mount`. See [createLocalVue](/api/createLocalVue.md)
37+
`options.localVue` (`Object`): vue class to use in `mount`. See [createLocalVue](/docs/en/api/createLocalVue.md)
3838

3939
`options.propsData` (`Object`): Data for props in component
4040

docs/en/api/shallow.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919

2020
- **Options:**
2121

22-
See [options](/api/options.md)
22+
See [options](/docs/en/api/options.md)
2323

2424
- **Usage:**
2525

26-
Returns [`Wrapper`](/api/wrapper/README.md) of first DOM node or Vue component matching selector.
26+
Returns [`Wrapper`](/docs/en/api/wrapper/README.md) of first DOM node or Vue component matching selector.
2727

2828
Stubs all child components.
2929

30-
Use any valid [selector](/api/selectors.md).
30+
Use any valid [selector](/docs/en/api/selectors.md).
3131

3232
**Without options:**
3333

docs/en/api/wrapper-array/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# WrapperArray
22

3-
A `WrapperArray` is an object that contains an array of [Wrappers](/api/wrapper/README.md), and methods to test the `Wrappers`.
3+
A `WrapperArray` is an object that contains an array of [Wrappers](/docs/en/api/wrapper/README.md), and methods to test the `Wrappers`.
44

55
- **Properties:**
66

docs/en/api/wrapper-array/contains.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Assert every wrapper in `WrapperArray` contains selector.
1111

12-
Use any valid [selector](/api/selectors.md).
12+
Use any valid [selector](/docs/en/api/selectors.md).
1313

1414
```js
1515
import { shallow } from 'vue-test-utils'

docs/en/api/wrapper-array/is.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
- **Usage:**
99

10-
Assert every `Wrapper` in `WrapperArray` DOM node or `vm` matches [selector](/api/selectors.md).
10+
Assert every `Wrapper` in `WrapperArray` DOM node or `vm` matches [selector](/docs/en/api/selectors.md).
1111

1212
```js
1313
import { mount } from 'vue-test-utils'

docs/en/api/wrapper/contains.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
- **Usage:**
99

10-
Assert `Wrapper` contains an element or component matching [selector](/api/selectors.md).
10+
Assert `Wrapper` contains an element or component matching [selector](/docs/en/api/selectors.md).
1111

1212
```js
1313
import { mount } from 'vue-test-utils'
@@ -20,4 +20,4 @@ expect(wrapper.contains('p')).to.equal(true)
2020
expect(wrapper.contains(Bar)).to.equal(true)
2121
```
2222

23-
- **See also:** [selectors](/api/selectors.md)
23+
- **See also:** [selectors](/docs/en/api/selectors.md)

0 commit comments

Comments
 (0)