aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-08-02 08:05:36 +0800
committerkumavis <aaron@kumavis.me>2017-08-02 08:05:36 +0800
commit9eb13aee0046405bb304a2e31dbf7712e8b1da21 (patch)
treea93eb0e484a718d58e5f410378cebf78c3f5f23f /test
parent9d345e744d61d94879f3c01a263aa9cf73afa36b (diff)
downloadtangerine-wallet-browser-9eb13aee0046405bb304a2e31dbf7712e8b1da21.tar
tangerine-wallet-browser-9eb13aee0046405bb304a2e31dbf7712e8b1da21.tar.gz
tangerine-wallet-browser-9eb13aee0046405bb304a2e31dbf7712e8b1da21.tar.bz2
tangerine-wallet-browser-9eb13aee0046405bb304a2e31dbf7712e8b1da21.tar.lz
tangerine-wallet-browser-9eb13aee0046405bb304a2e31dbf7712e8b1da21.tar.xz
tangerine-wallet-browser-9eb13aee0046405bb304a2e31dbf7712e8b1da21.tar.zst
tangerine-wallet-browser-9eb13aee0046405bb304a2e31dbf7712e8b1da21.zip
blacklist - add tests for metamask subdomains
Diffstat (limited to 'test')
-rw-r--r--test/unit/blacklister-test.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit/blacklister-test.js b/test/unit/blacklister-test.js
index 47e9b3c6b..ce110491c 100644
--- a/test/unit/blacklister-test.js
+++ b/test/unit/blacklister-test.js
@@ -19,6 +19,18 @@ describe('blacklister', function () {
var result = isPhish({ hostname: 'example.com' })
assert.equal(result, false)
})
+ it('should not flag the ropsten faucet domains', function () {
+ var result = isPhish({ hostname: 'faucet.metamask.io' })
+ assert.equal(result, false)
+ })
+ it('should not flag the mascara domain', function () {
+ var result = isPhish({ hostname: 'zero.metamask.io' })
+ assert.equal(result, false)
+ })
+ it('should not flag the mascara-faucet domain', function () {
+ var result = isPhish({ hostname: 'zero-faucet.metamask.io' })
+ assert.equal(result, false)
+ })
})
})