Skip to content

Commit 40ccbd6

Browse files
committed
Updated tests.
1 parent 1c2ebc4 commit 40ccbd6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/test-utils.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,16 @@ function prototypeString() {
9595
assert.ok('[}'.isJSON() === false, 'string.isJSON([})');
9696
assert.ok('["'.isJSON() === false, 'string.isJSON([")');
9797

98-
str = 'www.google.sk';
99-
assert.ok(str.isURL() === true, 'string.isURL(): ' + str);
100-
10198
str = 'google.sk';
10299
assert.ok(str.isURL() === false, 'string.isURL(): ' + str);
103100

104101
str = 'google';
105102
assert.ok(str.isURL() === false, 'string.isURL(): ' + str);
106103

107-
str = 'http://google.com';
104+
str = 'http://www.google.com';
105+
assert.ok(str.isURL() === true, 'string.isURL(): ' + str);
106+
107+
str = 'http://127.0.0.1:8000';
108108
assert.ok(str.isURL() === true, 'string.isURL(): ' + str);
109109

110110
str = 'https://mail.google.com';

0 commit comments

Comments
 (0)