aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2018-06-05 06:26:01 +0800
committerDan Finlay <dan@danfinlay.com>2018-06-05 06:26:01 +0800
commitae156e10872faae3040540a7f440af5882a79ec2 (patch)
treebd329a3a903d81cdefe763652ae55f91f36143fd /app/scripts
parentf07ca73e07c15e338e2f2d2ab794fa1c95619056 (diff)
downloadtangerine-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 'app/scripts')
-rw-r--r--app/scripts/controllers/preferences.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/controllers/preferences.js b/app/scripts/controllers/preferences.js
index b63dd5fcc..942546528 100644
--- a/app/scripts/controllers/preferences.js
+++ b/app/scripts/controllers/preferences.js
@@ -35,6 +35,7 @@ class PreferencesController {
}, opts.initState)
this.getFirstTimeInfo = opts.getFirstTimeInfo || null
+ this.notifier = opts.notifier || notifier
this.store = new ObservableStore(initState)
}
@@ -129,7 +130,7 @@ class PreferencesController {
// Notify our servers:
const uri = 'https://diagnostics.metamask.io/v1/orphanedAccounts'
const firstTimeInfo = this.getFirstTimeInfo ? this.getFirstTimeInfo() : {}
- notifier.notify(uri, {
+ this.notifier.notify(uri, {
accounts: Object.keys(newlyLost),
metadata: {
version,