aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-04-26 03:20:33 +0800
committerDan Finlay <dan@danfinlay.com>2016-04-26 03:38:43 +0800
commit2dd7bd6bd0d026da339c1e55d52270674be13f3d (patch)
treebb4b6df2be4720905db8960c3c6e4e40694eb7b9 /test/unit
parent652c1d96c1a80864218fa4dadf7aa0f4102a583b (diff)
downloadtangerine-wallet-browser-2dd7bd6bd0d026da339c1e55d52270674be13f3d.tar
tangerine-wallet-browser-2dd7bd6bd0d026da339c1e55d52270674be13f3d.tar.gz
tangerine-wallet-browser-2dd7bd6bd0d026da339c1e55d52270674be13f3d.tar.bz2
tangerine-wallet-browser-2dd7bd6bd0d026da339c1e55d52270674be13f3d.tar.lz
tangerine-wallet-browser-2dd7bd6bd0d026da339c1e55d52270674be13f3d.tar.xz
tangerine-wallet-browser-2dd7bd6bd0d026da339c1e55d52270674be13f3d.tar.zst
tangerine-wallet-browser-2dd7bd6bd0d026da339c1e55d52270674be13f3d.zip
Make account detail view the primary view
- When unlocking, the first account is now selected by default and displayed as the main view. - There is now a "CHANGE ACCT" button on the detail view to show the accounts list. - Clicking an account from the accounts list now navigates to the detail view and selects that account. - Config/Info screen "back" buttons now fire a new action, `GO_HOME`, which is configured to navigate to the accountDetail view, putting that logic in one place. - When locking and unlocking again, the first account is always displayed, eventually we should persist the selection.
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/actions/restore_vault_test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/actions/restore_vault_test.js b/test/unit/actions/restore_vault_test.js
index 5873a0181..5675028b1 100644
--- a/test/unit/actions/restore_vault_test.js
+++ b/test/unit/actions/restore_vault_test.js
@@ -21,7 +21,7 @@ describe('#recoverFromSeed(password, seed)', function() {
// stub out account manager
actions._setAccountManager({
- recoverFromSeed(pw, seed, cb) { cb() },
+ recoverFromSeed(pw, seed, cb) { cb(null, [{}, {}]) },
})
it('sets metamask.isUnlocked to true', function() {