aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-08-02 07:58:40 +0800
committerkumavis <aaron@kumavis.me>2017-08-02 07:58:40 +0800
commit9d345e744d61d94879f3c01a263aa9cf73afa36b (patch)
tree672d93e44d792f01d990ae68da454490a60f5301
parentd15e402ed87bf7533250c49a7972a7b1a12c99c2 (diff)
downloadtangerine-wallet-browser-9d345e744d61d94879f3c01a263aa9cf73afa36b.tar
tangerine-wallet-browser-9d345e744d61d94879f3c01a263aa9cf73afa36b.tar.gz
tangerine-wallet-browser-9d345e744d61d94879f3c01a263aa9cf73afa36b.tar.bz2
tangerine-wallet-browser-9d345e744d61d94879f3c01a263aa9cf73afa36b.tar.lz
tangerine-wallet-browser-9d345e744d61d94879f3c01a263aa9cf73afa36b.tar.xz
tangerine-wallet-browser-9d345e744d61d94879f3c01a263aa9cf73afa36b.tar.zst
tangerine-wallet-browser-9d345e744d61d94879f3c01a263aa9cf73afa36b.zip
blacklist - clearer test format
-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)
})
})
})