Update utils.test.js

This commit is contained in:
freearhey 2021-03-28 04:00:28 +03:00
parent 0de1b19830
commit c53ad84dd8
1 changed files with 7 additions and 0 deletions

View File

@ -73,3 +73,10 @@ it('can escape string', () => {
const string = 'Música тест dun. &<>"\'\r\n'
expect(utils.escapeString(string)).toBe('Música тест dun. &amp;&lt;&gt;&quot;&apos;')
})
it('can escape url', () => {
const string = 'http://example.com/logos/1TV.png?param1=val&param2=val'
expect(utils.escapeString(string)).toBe(
'http://example.com/logos/1TV.png?param1=val&amp;param2=val'
)
})