aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-12 11:26:56 +0800
committerkumavis <aaron@kumavis.me>2017-01-12 11:31:42 +0800
commit2019c02fc0fc33d4bd98416654370250d7aa0ca6 (patch)
treeadf50466f1c0950cd02c27fbfcefe211c190175d /test/lib
parent8012ede12698477692b80769781096b559159a32 (diff)
downloadtangerine-wallet-browser-2019c02fc0fc33d4bd98416654370250d7aa0ca6.tar
tangerine-wallet-browser-2019c02fc0fc33d4bd98416654370250d7aa0ca6.tar.gz
tangerine-wallet-browser-2019c02fc0fc33d4bd98416654370250d7aa0ca6.tar.bz2
tangerine-wallet-browser-2019c02fc0fc33d4bd98416654370250d7aa0ca6.tar.lz
tangerine-wallet-browser-2019c02fc0fc33d4bd98416654370250d7aa0ca6.tar.xz
tangerine-wallet-browser-2019c02fc0fc33d4bd98416654370250d7aa0ca6.tar.zst
tangerine-wallet-browser-2019c02fc0fc33d4bd98416654370250d7aa0ca6.zip
test - fix tests from obs-store
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/mock-config-manager.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/lib/mock-config-manager.js b/test/lib/mock-config-manager.js
index b79f63090..0e84aa001 100644
--- a/test/lib/mock-config-manager.js
+++ b/test/lib/mock-config-manager.js
@@ -1,9 +1,12 @@
-var ConfigManager = require('../../app/scripts/lib/config-manager')
+const ConfigManager = require('../../app/scripts/lib/config-manager')
+const ObservableStore = require('../../app/scripts/lib/observable/')
const STORAGE_KEY = 'metamask-config'
const extend = require('xtend')
module.exports = function() {
- return new ConfigManager({ loadData, setData })
+ let store = new ObservableStore(loadData())
+ store.subscribe(setData)
+ return new ConfigManager({ store })
}
function loadData () {