Skip to content

Commit 807fd68

Browse files
38elementseddyerburgh
authored andcommitted
docs: tweaks (#365)
* docs: tweaks * Update common-tips.md
1 parent 5dbb8cb commit 807fd68

File tree

9 files changed

+10
-86
lines changed

9 files changed

+10
-86
lines changed

docs/en/README.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* [Choosing a test runner](guides/choosing-a-test-runner.md)
1212
* [Testing SFCs with Jest](guides/testing-SFCs-with-jest.md)
1313
* [Testing SFCs with Mocha + webpack](guides/testing-SFCs-with-mocha-webpack.md)
14+
* [Testing SFCs with Karma](guides/testing-SFCs-with-karma.md)
1415
* [Testing Asynchronous Behavior](guides/testing-async-components.md)
1516
* [Using with Vue Router](guides/using-with-vue-router.md)
1617
* [Using with Vuex](guides/using-with-vuex.md)
@@ -38,14 +39,12 @@
3839
* [destroy](api/wrapper/destroy.md)
3940
* [find](api/wrapper/find.md)
4041
* [findAll](api/wrapper/findAll.md)
41-
* [hasStyle](api/wrapper/hasStyle.md)
4242
* [html](api/wrapper/html.md)
4343
* [is](api/wrapper/is.md)
4444
* [isEmpty](api/wrapper/isEmpty.md)
4545
* [isVueInstance](api/wrapper/isVueInstance.md)
4646
* [name](api/wrapper/name.md)
4747
* [props](api/wrapper/props.md)
48-
* [setComputed](api/wrapper/setComputed.md)
4948
* [setData](api/wrapper/setData.md)
5049
* [setMethods](api/wrapper/setMethods.md)
5150
* [setProps](api/wrapper/setProps.md)
@@ -58,11 +57,9 @@
5857
* [contains](api/wrapper-array/contains.md)
5958
* [exists](api/wrapper/exists.md)
6059
* [destroy](api/wrapper-array/destroy.md)
61-
* [hasStyle](api/wrapper-array/hasStyle.md)
6260
* [is](api/wrapper-array/is.md)
6361
* [isEmpty](api/wrapper-array/isEmpty.md)
6462
* [isVueInstance](api/wrapper-array/isVueInstance.md)
65-
* [setComputed](api/wrapper-array/setComputed.md)
6663
* [setData](api/wrapper-array/setData.md)
6764
* [setMethods](api/wrapper-array/setMethods.md)
6865
* [setProps](api/wrapper-array/setProps.md)

docs/en/SUMMARY.md

-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
* [destroy](api/wrapper/destroy.md)
3636
* [find](api/wrapper/find.md)
3737
* [findAll](api/wrapper/findAll.md)
38-
* [hasStyle](api/wrapper/hasStyle.md)
3938
* [html](api/wrapper/html.md)
4039
* [is](api/wrapper/is.md)
4140
* [isEmpty](api/wrapper/isEmpty.md)
@@ -54,11 +53,9 @@
5453
* [contains](api/wrapper-array/contains.md)
5554
* [exists](api/wrapper/exists.md)
5655
* [destroy](api/wrapper-array/destroy.md)
57-
* [hasStyle](api/wrapper-array/hasStyle.md)
5856
* [is](api/wrapper-array/is.md)
5957
* [isEmpty](api/wrapper-array/isEmpty.md)
6058
* [isVueInstance](api/wrapper-array/isVueInstance.md)
61-
* [setComputed](api/wrapper-array/setComputed.md)
6259
* [setData](api/wrapper-array/setData.md)
6360
* [setMethods](api/wrapper-array/setMethods.md)
6461
* [setProps](api/wrapper-array/setProps.md)

docs/en/api/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
* [hasAttribute](./wrapper/hasAttribute.md)
2727
* [hasClass](./wrapper/hasClass.md)
2828
* [hasProp](./wrapper/hasProp.md)
29-
* [hasStyle](./wrapper/hasStyle.md)
3029
* [html](./wrapper/html.md)
3130
* [is](./wrapper/is.md)
3231
* [isEmpty](./wrapper/isEmpty.md)
@@ -39,21 +38,21 @@
3938
* [text](./wrapper/text.md)
4039
* [trigger](./wrapper/trigger.md)
4140
* [update](./wrapper/update.md)
41+
* [visible](./wrapper/visible.md)
4242
* [WrapperArray](./wrapper-array/README.md)
4343
* [at](./wrapper-array/at.md)
4444
* [contains](./wrapper-array/contains.md)
4545
* [exists](./wrapper/exists.md)
4646
* [destroy](./wrapper-array/destroy.md)
47-
* [hasStyle](./wrapper-array/hasStyle.md)
4847
* [is](./wrapper-array/is.md)
4948
* [isEmpty](./wrapper-array/isEmpty.md)
5049
* [isVueInstance](./wrapper-array/isVueInstance.md)
51-
* [setComputed](./wrapper-array/setComputed.md)
5250
* [setData](./wrapper-array/setData.md)
5351
* [setMethods](./wrapper-array/setMethods.md)
5452
* [setProps](./wrapper-array/setProps.md)
5553
* [trigger](./wrapper-array/trigger.md)
5654
* [update](./wrapper-array/update.md)
55+
* [visible](./wrapper-array/visible.md)
5756
* [components](./components/README.md)
5857
* [TransitionStub](./components/TransitionStub.md)
5958
* [TransitionGroupStub](./components/TransitionGroupStub.md)

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

-24
This file was deleted.

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

-26
This file was deleted.

docs/en/api/wrapper/hasStyle.md

-24
This file was deleted.

docs/en/api/wrapper/trigger.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ expect(clickHandler.called).toBe(true)
3333

3434
Under the hood, `trigger` creates an `Event` object and dispatches the event on the Wrapper element.
3535

36-
It's not possible edit the `target` value of an `Event` object, so you can't set `target` in the options object.
36+
It's not possible to edit the `target` value of an `Event` object, so you can't set `target` in the options object.
3737

3838
To add an attribute to the `target`, you need to set the value of the Wrapper element before calling `trigger`. You can do this with the `element` property.
3939

docs/en/guides/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* [Choosing a test runner](./choosing-a-test-runner.md)
77
* [Testing SFCs with Jest](./testing-SFCs-with-jest.md)
88
* [Testing SFCs with Mocha + webpack](./testing-SFCs-with-mocha-webpack.md)
9+
* [Testing SFCs with Karma](./testing-SFCs-with-karma.md)
910
* [Testing Asynchronous Behavior](testing-async-components.md)
1011
* [Using with Vue Router](./using-with-vue-router.md)
1112
* [Using with Vuex](./using-with-vuex.md)

docs/en/guides/common-tips.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ mount(Component, {
109109
})
110110
```
111111

112-
**Note some plugins, like Vue Router, add read-only properties to the global Vue constructor. This makes it impossible to reinstall the plugin on a `localVue` constructor, or add mocks for these properties**
112+
**Note some plugins, like Vue Router, add read-only properties to the global Vue constructor. This makes it impossible to reinstall the plugin on a `localVue` constructor, or add mocks for these read-only properties**
113113

114114
## Mocking Injections
115115

@@ -135,3 +135,7 @@ mount(Component, {
135135
## Dealing with Routing
136136

137137
Since routing by definition has to do with the overall structure of the application and involves multiple components, it is best tested via integration or end-to-end tests. For individual components that rely on `vue-router` features, you can mock them using the techniques mentioned above.
138+
139+
## Detecting styles
140+
141+
Your test can only detect inline styles when running in `jsdom`.

0 commit comments

Comments
 (0)