Skip to content

Commit c758262

Browse files
authored
Update wrapper.js
1 parent 5119f57 commit c758262

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
@@ -132,7 +132,7 @@ export default class Wrapper implements BaseWrapper {
132132
this.element.parentNode.removeChild(this.element)
133133
}
134134

135-
if (!this.isFunctionalComponent) {
135+
if (this.isVueInstance()) {
136136
// $FlowIgnore
137137
this.vm.$destroy()
138138
throwIfInstancesThrew(this.vm)

0 commit comments

Comments
 (0)