const assert = require('assert') const BlacklistController = require('../../app/scripts/controllers/blacklist') describe('blacklist controller', function () { let blacklistController before(() => { blacklistController = new BlacklistController() }) describe('checkForPhishing', function () { it('should not flag whitelisted values', function () { const result = blacklistController.checkForPhishing('www.metamask.io') assert.equal(result, false) }) it('should flag explicit values', function () { const result = blacklistController.checkForPhishing('metamask.com') assert.equal(result, true) }) it('should flag levenshtein values', function () { const result = blacklistController.checkForPhishing('metmask.io') assert.equal(result, true) }) it('should not flag not-even-close values', function () { const result = blacklistController.checkForPhishing('example.com') assert.equal(result, false) }) it('should not flag the ropsten faucet domains', function () { const result = blacklistController.checkForPhishing('faucet.metamask.io') assert.equal(result, false) }) it('should not flag the mascara domain', function () { const result = blacklistController.checkForPhishing('zero.metamask.io') assert.equal(result, false) }) it('should not flag the mascara-faucet domain', function () { const result = blacklistController.checkForPhishing('zero-faucet.metamask.io') assert.equal(result, false) }) }) }) FreeBSD Ports (https://github.com/freebsd/freebsd-ports)
aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/mbpurple
Commit message (Collapse)AuthorAgeFilesLines
* Convert net-im/libpurple (and slave ports net-im/finch and net-im/pidgin)tijl2014-05-182-26/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to "USES=libtool tar:bzip2". Bump PORTREVISION on all dependent ports and modernise them as well (USES, LIB_DEPENDS, staging). audio/pidgin-musictracker: - Replace LIBS with LDFLAGS. - Disable static plugin. net/online-desktop: Remove obsolete patches. net-im/mbpurple: - Drop pkgconf dependency. - Replace post-patch with MAKE_ARGS. - Use standard do-build. net-im/pidgin-audacious-remote: Disable static plugin. net-im/pidgin-birthday-reminder: Disable static plugin. net-im/pidgin-fetion: Replace pkg-plist with PLIST_FILES. net-im/pidgin-guifications: - Drop USE_GNOME=gnomeprefix. - Replace LIBS with LDFLAGS. net-im/pidgin-hotkeys: - Drop CFLAGS=-fPIC. - Fix build on systems without gcc. net-im/pidgin-libnotify: - Use option helpers. - Drop references to PTHREAD_CFLAGS and PTHREAD_LIBS. net-im/pidgin-manualsize: Fix build on systems without gcc. net-im/pidgin-privacy-please: - Replace a patch with CPPFLAGS and LDFLAGS. - Don't use USE_LDCONFIG for a plugin. net-im/pidgin-sipe: - Don't use USE_LDCONFIG for a plugin. - Drop PORTDOCS that don't contain useful documentation. - Patch configure with s/LDLAGS/LDFLAGS/ so LDFLAGS can replace LIBS. - Use option helpers and fix Kerberos option. - Remove obsolete CONFIGURE_ENV. security/pidgin-encryption: - Drop references to PTHREAD_CFLAGS and PTHREAD_LIBS. - Disable static plugin. - Use option helpers. security/pidgin-otr: - Drop redundant comment about PORTREVISION. - Add USE_GNOME=gtk20. - Drop references to PTHREAD_CFLAGS and PTHREAD_LIBS. - Port uses stack protector unconditionally so link with -lssp_nonshared when necessary like Mk/bsd.ssp.mk does. Approved by: portmgr (PORTREVISION bump on unstaged port)
* - Don't remove mtree directoriesamdmi32014-05-101-1/+0
| | | | Approved by: portmgr