diff options
author | Dan Finlay <dan@danfinlay.com> | 2018-06-05 06:26:01 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2018-06-05 06:26:01 +0800 |
commit | ae156e10872faae3040540a7f440af5882a79ec2 (patch) | |
tree | bd329a3a903d81cdefe763652ae55f91f36143fd /test/unit/app | |
parent | f07ca73e07c15e338e2f2d2ab794fa1c95619056 (diff) | |
download | tangerine-wallet-browser-ae156e10872faae3040540a7f440af5882a79ec2.tar tangerine-wallet-browser-ae156e10872faae3040540a7f440af5882a79ec2.tar.gz tangerine-wallet-browser-ae156e10872faae3040540a7f440af5882a79ec2.tar.bz2 tangerine-wallet-browser-ae156e10872faae3040540a7f440af5882a79ec2.tar.lz tangerine-wallet-browser-ae156e10872faae3040540a7f440af5882a79ec2.tar.xz tangerine-wallet-browser-ae156e10872faae3040540a7f440af5882a79ec2.tar.zst tangerine-wallet-browser-ae156e10872faae3040540a7f440af5882a79ec2.zip |
Mock notifier in test
Diffstat (limited to 'test/unit/app')
-rw-r--r-- | test/unit/app/controllers/metamask-controller-test.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/app/controllers/metamask-controller-test.js b/test/unit/app/controllers/metamask-controller-test.js index 266c3f258..7ec98766a 100644 --- a/test/unit/app/controllers/metamask-controller-test.js +++ b/test/unit/app/controllers/metamask-controller-test.js @@ -72,6 +72,11 @@ describe('MetaMaskController', function () { it('removes any identities that do not correspond to known accounts.', async function () { const fakeAddress = '0xbad0' metamaskController.preferencesController.addAddresses([fakeAddress]) + metamaskController.preferencesController.notifier = { + notify: async () => { + return true + }, + } await metamaskController.submitPassword(password) const identities = Object.keys(metamaskController.preferencesController.store.getState().identities) |