aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-07-28 06:22:09 +0800
committerGitHub <noreply@github.com>2017-07-28 06:22:09 +0800
commitd15e402ed87bf7533250c49a7972a7b1a12c99c2 (patch)
tree3bbeb674eb53c7dc7a9f616c75b63825cbe2848f /test
parente3b5bb2052d59afbf9c2761af883de719261062e (diff)
parent7c71ee1babcaad19dbe7db6c5abfefe2f9654781 (diff)
downloadtangerine-wallet-browser-d15e402ed87bf7533250c49a7972a7b1a12c99c2.tar
tangerine-wallet-browser-d15e402ed87bf7533250c49a7972a7b1a12c99c2.tar.gz
tangerine-wallet-browser-d15e402ed87bf7533250c49a7972a7b1a12c99c2.tar.bz2
tangerine-wallet-browser-d15e402ed87bf7533250c49a7972a7b1a12c99c2.tar.lz
tangerine-wallet-browser-d15e402ed87bf7533250c49a7972a7b1a12c99c2.tar.xz
tangerine-wallet-browser-d15e402ed87bf7533250c49a7972a7b1a12c99c2.tar.zst
tangerine-wallet-browser-d15e402ed87bf7533250c49a7972a7b1a12c99c2.zip
Merge pull request #1838 from MetaMask/i1805-LiveBlacklistUpdating
Live blacklist updating
Diffstat (limited to 'test')
-rw-r--r--test/unit/blacklister-test.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/blacklister-test.js b/test/unit/blacklister-test.js
index d9290795c..1badc2c8f 100644
--- a/test/unit/blacklister-test.js
+++ b/test/unit/blacklister-test.js
@@ -1,24 +1,24 @@
const assert = require('assert')
-const Blacklister = require('../../app/scripts/blacklister')
-
+const isPhish = require('../../app/scripts/lib/is-phish')
describe('blacklister', function () {
describe('#isPhish', function () {
it('should not flag whitelisted values', function () {
- var result = Blacklister('www.metamask.io')
+ var result = isPhish({ hostname: 'www.metamask.io' })
assert(!result)
})
it('should flag explicit values', function () {
- var result = Blacklister('metamask.com')
+ var result = isPhish({ hostname: 'metamask.com' })
assert(result)
})
it('should flag levenshtein values', function () {
- var result = Blacklister('metmask.io')
+ var result = isPhish({ hostname: 'metmask.com' })
assert(result)
})
it('should not flag not-even-close values', function () {
- var result = Blacklister('example.com')
+ var result = isPhish({ hostname: 'example.com' })
assert(!result)
})
})
})
+