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

blacklist - clearer test format

This commit is contained in:
kumavis 2017-08-01 16:58:40 -07:00
parent d15e402ed8
commit 9d345e744d

View File

@ -5,19 +5,19 @@ describe('blacklister', function () {
describe('#isPhish', function () {
it('should not flag whitelisted values', function () {
var result = isPhish({ hostname: 'www.metamask.io' })
assert(!result)
assert.equal(result, false)
})
it('should flag explicit values', function () {
var result = isPhish({ hostname: 'metamask.com' })
assert(result)
assert.equal(result, true)
})
it('should flag levenshtein values', function () {
var result = isPhish({ hostname: 'metmask.com' })
assert(result)
var result = isPhish({ hostname: 'metmask.io' })
assert.equal(result, true)
})
it('should not flag not-even-close values', function () {
var result = isPhish({ hostname: 'example.com' })
assert(!result)
assert.equal(result, false)
})
})
})