Skip to content

Commit 2854633

Browse files
committed
test($shared-utils): cover more cases for unescapeHtml
1 parent 1114ade commit 2854633

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unescapeHtml from '../src/unescapeHtml'
22

33
test('should unescape html', () => {
4-
const input = '<div>'
5-
expect(unescapeHtml(input)).toBe('<div>')
4+
const input = `&lt;div :id=&quot;&#39;app&#39;&quot;&gt;`
5+
expect(unescapeHtml(input)).toBe(`<div :id="'app'">`)
66
})
77

0 commit comments

Comments
 (0)