aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/blacklister-test.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/blacklister-test.js b/test/unit/blacklister-test.js
index 1badc2c8f..47e9b3c6b 100644
--- a/test/unit/blacklister-test.js
+++ b/test/unit/blacklister-test.js
@@ -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)
})
})
})