diff --git a/app/scripts/controllers/preferences.js b/app/scripts/controllers/preferences.js index d57aec71a..4798b2ad6 100644 --- a/app/scripts/controllers/preferences.js +++ b/app/scripts/controllers/preferences.js @@ -1,6 +1,6 @@ const ObservableStore = require('obs-store') const normalizeAddress = require('eth-sig-util').normalize -const isValidAddress = require('ethereumjs-util').isValidAddress +const { isValidAddress } = require('ethereumjs-util') const extend = require('xtend') diff --git a/test/unit/app/controllers/preferences-controller-test.js b/test/unit/app/controllers/preferences-controller-test.js index d63356215..2c261be90 100644 --- a/test/unit/app/controllers/preferences-controller-test.js +++ b/test/unit/app/controllers/preferences-controller-test.js @@ -357,7 +357,7 @@ describe('preferences controller', function () { sandbox.restore() }) - it('should do anything if method not corresponds', async function () { + it('shouldn not do anything if method not corresponds', async function () { const asy = {next: () => {}, end: () => {}} var stubNext = sandbox.stub(asy, 'next') var stubEnd = sandbox.stub(asy, 'end').returns(0)