Skip to content

Commit

Permalink
test: add test for squeezing paragraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
robertu7 committed Sep 18, 2024
1 parent b8ab539 commit 56deb16
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/transformers/sanitize.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,19 @@ describe('Sanitization: custom', () => {
})

test('skip squeezing empty paragraphs', () => {
expectSanitizeHTML(
stripIndent`
<p>abc</p>
<p></p>
<p></p>
`,
stripIndent`
<p>abc</p>
<p></p>
<p></p>
`,
)

expectSanitizeHTML(
stripIndent`
<p>abc</p>
Expand Down

0 comments on commit 56deb16

Please sign in to comment.