Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ddd4cc8

Browse files
Fix updateProps Function
* Changed updateProps to return the Promise created from wrapper.setProps.
1 parent 8466f70 commit ddd4cc8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎src/vue-testing-library.js‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,7 @@ function render(
8080
isUnmounted: () => wrapper.vm._isDestroyed,
8181
html: () => wrapper.html(),
8282
emitted: () => wrapper.emitted(),
83-
updateProps: _ => {
84-
wrapper.setProps(_)
85-
return waitFor(() => {})
86-
},
83+
updateProps: _ => wrapper.setProps(_),
8784
...getQueriesForElement(baseElement),
8885
}
8986
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /