diff options
author | kumavis <aaron@kumavis.me> | 2017-08-02 07:58:40 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2017-08-02 07:58:40 +0800 |
commit | 9d345e744d61d94879f3c01a263aa9cf73afa36b (patch) | |
tree | 672d93e44d792f01d990ae68da454490a60f5301 | |
parent | d15e402ed87bf7533250c49a7972a7b1a12c99c2 (diff) | |
download | tangerine-wallet-browser-9d345e744d61d94879f3c01a263aa9cf73afa36b.tar.gz tangerine-wallet-browser-9d345e744d61d94879f3c01a263aa9cf73afa36b.tar.zst tangerine-wallet-browser-9d345e744d61d94879f3c01a263aa9cf73afa36b.zip |
blacklist - clearer test format
-rw-r--r-- | test/unit/blacklister-test.js | 10 |
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) }) }) }) |