Update utils.test.js
This commit is contained in:
parent
0de1b19830
commit
c53ad84dd8
|
@ -73,3 +73,10 @@ it('can escape string', () => {
|
|||
const string = 'Música тест dun. &<>"\'\r\n'
|
||||
expect(utils.escapeString(string)).toBe('Música тест dun. &<>"'')
|
||||
})
|
||||
|
||||
it('can escape url', () => {
|
||||
const string = 'http://example.com/logos/1TV.png?param1=val¶m2=val'
|
||||
expect(utils.escapeString(string)).toBe(
|
||||
'http://example.com/logos/1TV.png?param1=val&param2=val'
|
||||
)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue