Skip to content

Commit 6fbf7dd

Browse files
committed
test: add special characters
1 parent b9af468 commit 6fbf7dd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/convert.test.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,14 @@ describe('convert', () => {
178178
)
179179
})
180180
})
181+
182+
test('special characters', () => {
183+
expect(
184+
jsxToString(
185+
<div>
186+
`///\\\\`${233}${'foo'}
187+
</div>
188+
)
189+
).toMatchInlineSnapshot('"<div>`///\\\\\\\\\\\\\\\\`$233$foo</div>"')
190+
})
181191
})

0 commit comments

Comments
 (0)