This commit is contained in:
Barış Soner Uşaklı
2017-10-02 19:27:42 -04:00
parent da9da8190f
commit b70f328520
2 changed files with 10 additions and 2 deletions

View File

@@ -72,4 +72,9 @@ describe('blacklist', function () {
assert(blacklist.test('1.1.1.1'));
done();
});
it('should pass ip test and not crash with ipv6 address', function (done) {
assert(!blacklist.test('2001:db8:85a3:0:0:8a2e:370:7334'));
done();
});
});