mirror of
https://github.com/oceanprotocol/market.git
synced 2024-06-17 09:53:26 +02:00
10 lines
319 B
TypeScript
10 lines
319 B
TypeScript
|
import { sanitizeUrl } from './url'
|
||
|
|
||
|
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')
|
||
|
})
|
||
|
})
|