Skip to content

Commit 319e7da

Browse files
authored
Update wrapper.js
1 parent 2b1ef0a commit 319e7da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/test-utils/src/wrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export default class Wrapper implements BaseWrapper {
124124
* Calls destroy on vm
125125
*/
126126
destroy(): void {
127-
if (!this.isVueInstance() || !this.isFunctionalComponent) {
127+
if (!this.isVueInstance() && !this.isFunctionalComponent) {
128128
throwError(`wrapper.destroy() can only be called on a Vue instance or functional component`)
129129
}
130130

0 commit comments

Comments
 (0)