2022-12-01 10:09:40 +01:00
|
|
|
import { sanitizeUrl } from '.'
|
2022-09-23 11:05:52 +02:00
|
|
|
|
|
|
|
describe('@utils/url', () => {
|
|
|
|
test('sanitizeUrl', () => {
|
|
|
|
expect(sanitizeUrl('http://example.com')).toBe('http://example.com')
|
|
|
|
expect(sanitizeUrl('https://example.com')).toBe('https://example.com')
|
|
|
|
expect(sanitizeUrl('ftp://example.com')).toBe('about:blank')
|
|
|
|
})
|
|
|
|
})
|