Skip to content

Commit

Permalink
Improved the test case to reproduce the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
caliskanmehmet committed Nov 25, 2024
1 parent 4a30b6a commit 76bbc4a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions index.compiler.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4828,20 +4828,21 @@ it('#597 handles script tag with empty content', () => {
it('#473 handles content with multiple empty spaces without crashing', () => {
render(
compiler(
'##Long \r\n \r\n ###input \ntest'
'Test \r\n \r\n Test'
)
)

expect(root.innerHTML).toMatchInlineSnapshot(`
<div>
<h2 id="long">
Long
</h2>
<h3 id="input">
input
</h3>
<p>
test
Test
</p>
<pre>
<code>
</code>
</pre>
<p>
Test
</p>
</div>
`)
Expand Down

0 comments on commit 76bbc4a

Please sign in to comment.