Skip to content

Commit 402e7db

Browse files
committed
test: Readd removed test
1 parent 3410fc8 commit 402e7db

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/html.test.js

+6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ describe('html', () => {
1515
expect(heading.outerHTML).toMatch('<h1 class="large">Hello <strong>World</strong>!</h1>')
1616
})
1717

18+
it('supports multiple root elements (fragments)', () => {
19+
const { container } = render(h(Fragment, null, h('span', null, 'a'), h('span', null, 'b')))
20+
21+
expect(container.innerHTML).toMatch('<div><span>a</span><span>b</span></div>')
22+
})
23+
1824
it('allows to use a store as child', async () => {
1925
const count = writable(0)
2026

0 commit comments

Comments
 (0)