Skip to content

Commit 131eafc

Browse files
tests: ensure multiline trim
1 parent 9522abb commit 131eafc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/is-html.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ describe('isHtml', () => {
1515

1616
// Should trim() by default
1717
expect(isHtml(' <h1>Hi</h1> ')).toBe(true)
18+
expect(isHtml(' \n \n\n <h1>Hi</h1> \n\n \n \n ')).toBe(true)
1819
})
1920

2021
it('detects html with JSX', () => {

0 commit comments

Comments
 (0)