blacklist - clearer test format

feature/default_network_editable
kumavis 7 years ago
parent d15e402ed8
commit 9d345e744d
  1. 10
      test/unit/blacklister-test.js

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

Loading…
Cancel
Save