Skip to content

Commit df9a80c

Browse files
committed
chore: add test for ip addresses
1 parent b87418e commit df9a80c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/shared/util/validation.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ describe('Test valid url check', () => {
6767
const url = 'http://localhost:4566/local-bucket/file1.pdf'
6868
expect(validation.isValidUrl(url, true)).toBe(true)
6969
})
70+
71+
test('IP addresses fails check', () => {
72+
const url = 'https://8.8.8.8:4566/local-bucket/file1.pdf'
73+
expect(validation.isValidUrl(url)).toBe(false)
74+
})
7075
})
7176

7277
describe('Test short url check', () => {

0 commit comments

Comments
 (0)