1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

blacklist - add tests for metamask subdomains

This commit is contained in:
kumavis 2017-08-01 17:05:36 -07:00
parent 9d345e744d
commit 9eb13aee00

View File

@ -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)
})
})
})