Skip to content

Commit bbe1b0a

Browse files
authored
Update destroy.spec.js
1 parent c43e6a9 commit bbe1b0a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/specs/wrapper/destroy.spec.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ describeWithShallowAndMount('destroy', mountingMethod => {
4242

4343
it('removes functional component element from document.body', () => {
4444
const wrapper = mountingMethod(
45-
{ template: '<div />', functional: true },
45+
{
46+
functional: true,
47+
render: h => {
48+
return h('div', {}, [])
49+
}
50+
},
4651
{ attachToDocument: true }
4752
)
4853
expect(wrapper.element.parentNode).to.equal(document.body)

0 commit comments

Comments
 (0)