aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-04-19 11:33:51 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-05-17 23:27:39 +0800
commitcbe4d0d88c83ee1d8dd8efde537ee753bf19596a (patch)
treed840a52d33e4729003cb5fb7b743364d286c869c /test/unit
parent924cc1fcf7de1896ac09bbe7a400d5ff5df0b50d (diff)
downloadtangerine-wallet-browser-cbe4d0d88c83ee1d8dd8efde537ee753bf19596a.tar
tangerine-wallet-browser-cbe4d0d88c83ee1d8dd8efde537ee753bf19596a.tar.gz
tangerine-wallet-browser-cbe4d0d88c83ee1d8dd8efde537ee753bf19596a.tar.bz2
tangerine-wallet-browser-cbe4d0d88c83ee1d8dd8efde537ee753bf19596a.tar.lz
tangerine-wallet-browser-cbe4d0d88c83ee1d8dd8efde537ee753bf19596a.tar.xz
tangerine-wallet-browser-cbe4d0d88c83ee1d8dd8efde537ee753bf19596a.tar.zst
tangerine-wallet-browser-cbe4d0d88c83ee1d8dd8efde537ee753bf19596a.zip
Update AddressBookController to read from preferences store
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/address-book-controller.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/unit/address-book-controller.js b/test/unit/address-book-controller.js
index 655c9022c..e48e69d98 100644
--- a/test/unit/address-book-controller.js
+++ b/test/unit/address-book-controller.js
@@ -1,26 +1,26 @@
const assert = require('assert')
const AddressBookController = require('../../app/scripts/controllers/address-book')
-const mockKeyringController = {
- memStore: {
- getState: function () {
- return {
- identities: {
- '0x0aaa': {
- address: '0x0aaa',
- name: 'owned',
- },
+const stubPreferencesStore = {
+ getState: function () {
+ return {
+ identities: {
+ '0x0aaa': {
+ address: '0x0aaa',
+ name: 'owned',
},
- }
- },
+ },
+ }
},
-}
+};
describe('address-book-controller', function () {
var addressBookController
beforeEach(function () {
- addressBookController = new AddressBookController({}, mockKeyringController)
+ addressBookController = new AddressBookController({
+ preferencesStore: stubPreferencesStore,
+ })
})
describe('addres book management', function () {