diff --git a/test/index.js b/test/index.js index 5f7aebc..ba446c2 100644 --- a/test/index.js +++ b/test/index.js @@ -96,6 +96,22 @@ describe('is-url', function () { it('//google.com', function () { assert(url('//google.com')); }); + + it('http://google', function () { + assert(url('http://google')); + }); + + it('http://google:3000', function () { + assert(url('http://google:3000')); + }); + + it('http://google:3000/x', function () { + assert(url('http://google:3000/x')); + }); + + it('http://google/x', function () { + assert(url('http://google/x')); + }); }); describe('invalid', function () { @@ -103,10 +119,6 @@ describe('is-url', function () { assert(!url('http://')); }); - it('http://google', function () { - assert(!url('http://google')); - }); - it('http://google.', function () { assert(!url('http://google.')); });