From cd88861cfa29f5e369001386b459ee0fe949cc57 Mon Sep 17 00:00:00 2001 From: Brian Clifton Date: Thu, 8 Dec 2016 08:04:23 -0700 Subject: [PATCH] Added example use-case for local network --- test/unit/lib/urlutilTest.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/unit/lib/urlutilTest.js b/test/unit/lib/urlutilTest.js index 5a0a0c20873..e28035f7c60 100644 --- a/test/unit/lib/urlutilTest.js +++ b/test/unit/lib/urlutilTest.js @@ -86,6 +86,9 @@ describe('urlutil', function () { it('is localhost (case-insensitive)', function () { assert.equal(UrlUtil.isNotURL('LoCaLhOsT'), false) }) + it('is a hostname (not a domain)', function () { + assert.equal(UrlUtil.isNotURL('http://computer001/phpMyAdmin'), false) + }) it('ends with period (input contains a forward slash and domain)', function () { assert.equal(UrlUtil.isNotURL('brave.com/test/cc?_ri_=3vv-8-e.'), false) })