aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-04-17 12:25:02 +0000
committerGitHub <noreply@github.com>2019-04-17 12:25:02 +0000
commit15b3372c668a4b6120c614e35d3c38639a04b514 (patch)
tree5e8312acfc6d759c315f549611804860037f6374 /test
parent938fe9f752e393f0ea21def020e849a51ea79300 (diff)
parent7ece01c534c5961b073f3eb9fc776dc4281aad3e (diff)
Merge pull request #567 from ueokande/blacklist-with-port
Support blacklist with port
Diffstat (limited to 'test')
-rw-r--r--test/shared/blacklists.test.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/shared/blacklists.test.js b/test/shared/blacklists.test.js
index 87e89c5..289ea0f 100644
--- a/test/shared/blacklists.test.js
+++ b/test/shared/blacklists.test.js
@@ -39,4 +39,11 @@ describe("shared/blacklist", () => {
expect(includes(blacklist, 'https://github.com/abcdef')).to.be.true;
expect(includes(blacklist, 'https://gist.github.com/abc')).to.be.false;
})
+
+ it('matches address and port', () => {
+ let blacklist = ['127.0.0.1:8888'];
+
+ expect(includes(blacklist, 'http://127.0.0.1:8888/')).to.be.true;
+ expect(includes(blacklist, 'http://127.0.0.1:8888/hello')).to.be.true;
+ })
});