8000 fix: typing error with props and attributes by vwxyutarooo · Pull Request #433 · vuejs/vue-test-utils · GitHub
[go: up one dir, main page]

Skip to content

fix: typing error with props and attributes #433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 16, 2018
Merged
Changes from 1 commit
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
Next Next commit
test: add attributes() and props() to type test
  • Loading branch information
vwxyutarooo committed Feb 15, 2018
commit 7b4746250f267a49bf00e25b24b2807397689a7f
2 changes: 2 additions & 0 deletions types/test/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ bool = wrapper.contains(ClassComponent)
bool = wrapper.exists()

bool = wrapper.hasAttribute('foo', 'bar')
bool = wrapper.attributes().foo === 'bar'
bool = wrapper.hasClass('foo-class')
bool = wrapper.hasProp('checked', true)
bool = wrapper.props().checked
bool = wrapper.hasStyle('color', 'red')

bool = wrapper.is(normalOptions)
Expand Down
0