Skip to content

Commit d934437

Browse files
committed
test: ensure encoded urls are valid
1 parent b338731 commit d934437

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ test('true', t => {
99
t.is(isHttpUrl('https://kikobeats.com'), true)
1010
t.is(isHttpUrl('https://www.kikobeats.com'), true)
1111
t.is(isHttpUrl('http://www.kikobeats.com'), true)
12+
t.is(
13+
isHttpUrl(
14+
'http://www.ccrscenter.org/sites/default/files/CCRS%20District%20Practices%20Brief.pdf'
15+
),
16+
true
17+
)
1218
})
1319

1420
test('false', t => {

0 commit comments

Comments
 (0)