Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions test/render.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,18 @@ describe.concurrent('Render', () => {

expect(cleanString(html)).toBe('<h1>Hello John</h1>')
})

test("whitespace", async () => {
const { html } = await render(`
<h1>Hello <x-span>John</x-span>, nice to meet you!</h1>
`,
{
components: {
folders: ["test/stubs/components"],
}
}
)

expect(cleanString(html)).toBe("<h1>Hello <span>John</span>, nice to meet you!</h1>");
})
})
1 change: 1 addition & 0 deletions test/stubs/components/span.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<span><yield /></span>
Loading