Skip to content

Commit b4434b3

Browse files
38elementseddyerburgh
authored andcommitted
test: add types test for classes parameter (#945)
1 parent 0d13b37 commit b4434b3

4 files changed

+6
-3
lines changed

Diff for: docs/guides/testing-single-file-components-with-jest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Testing Single File Components with Jest
1+
## Testing Single-File Components with Jest
22

33
> An example project for this setup is available on [GitHub](https://github.com/vuejs/vue-test-utils-jest-example).
44

Diff for: docs/guides/testing-single-file-components-with-karma.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Testing Single File Components with Karma
1+
## Testing Single-File Components with Karma
22

33
> An example project for this setup is available on [GitHub](https://github.com/eddyerburgh/vue-test-utils-karma-example).
44

Diff for: docs/guides/testing-single-file-components-with-mocha-webpack.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Testing Single File Components with Mocha + webpack
1+
## Testing Single-File Components with Mocha + webpack
22

33
> An example project for this setup is available on [GitHub](https://github.com/vuejs/vue-test-utils-mocha-webpack-example).
44

Diff for: packages/test-utils/types/test/wrapper.ts

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ bool = wrapper.hasClass('foo-class')
1919
bool = wrapper.hasProp('checked', true)
2020
bool = wrapper.props().checked
2121
bool = wrapper.hasStyle('color', 'red')
22+
bool = wrapper.classes('foo')
2223

2324
bool = wrapper.is(normalOptions)
2425
bool = wrapper.isEmpty()
@@ -66,10 +67,12 @@ wrapper.setChecked()
6667
wrapper.setChecked(true)
6768
wrapper.setValue('some string')
6869
wrapper.setSelected()
70+
wrapper.props('foo')
6971

7072
let str: string = wrapper.html()
7173
str = wrapper.text()
7274
str = wrapper.name()
75+
wrapper.attributes('foo')
7376

7477
/**
7578
* Tests for WrapperArray API

0 commit comments

Comments
 (0)