Skip to content

Commit 5d3e197

Browse files
author
willxywang
committed
fix: lint
1 parent 2a25a8b commit 5d3e197

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

tests/mount.spec.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,18 @@ describe('mount: general tests', () => {
104104
})
105105

106106
it('should remove wrapper div when unmount', () => {
107-
expect(document.body.firstChild, 'Container should be empty').toBeNull();
107+
expect(document.body.firstChild, 'Container should be empty').toBeNull()
108108

109-
const wrapper = mount(Hello, { props: { msg: 'Hello world' }, attachTo: document.body });
110-
expect(document.body.firstChild, 'Container should have mounted component wrapper').toBeInstanceOf(HTMLDivElement);
111-
112-
wrapper.unmount();
113-
expect(document.body.firstChild, 'Container should be empty').toBeNull();
109+
const wrapper = mount(Hello, {
110+
props: { msg: 'Hello world' },
111+
attachTo: document.body
112+
})
113+
expect(
114+
document.body.firstChild,
115+
'Container should have mounted component wrapper'
116+
).toBeInstanceOf(HTMLDivElement)
117+
118+
wrapper.unmount()
119+
expect(document.body.firstChild, 'Container should be empty').toBeNull()
114120
})
115121
})

0 commit comments

Comments
 (0)