Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/guides/testing-single-file-components-with-jest.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Testing Single File Components with Jest
## Testing Single-File Components with Jest

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

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/testing-single-file-components-with-karma.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Testing Single File Components with Karma
## Testing Single-File Components with Karma

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Testing Single File Components with Mocha + webpack
## Testing Single-File Components with Mocha + webpack

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

Expand Down
3 changes: 3 additions & 0 deletions packages/test-utils/types/test/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ bool = wrapper.hasClass('foo-class')
bool = wrapper.hasProp('checked', true)
bool = wrapper.props().checked
bool = wrapper.hasStyle('color', 'red')
bool = wrapper.classes('foo')

bool = wrapper.is(normalOptions)
bool = wrapper.isEmpty()
Expand Down Expand Up @@ -66,10 +67,12 @@ wrapper.setChecked()
wrapper.setChecked(true)
wrapper.setValue('some string')
wrapper.setSelected()
wrapper.props('foo')

let str: string = wrapper.html()
str = wrapper.text()
str = wrapper.name()
wrapper.attributes('foo')

/**
* Tests for WrapperArray API
Expand Down