diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-05-13 16:13:14 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-05-13 16:24:05 +0800 |
commit | 041b5493dc43c9f8b69dc5a1dde4b319638618a7 (patch) | |
tree | d74812d939398896cc275bbf4080faa26aa35e95 /test/unit/actions/restore_vault_test.js | |
parent | f2676d12413e379f3876e8e36b73478c66ed6ad0 (diff) | |
download | tangerine-wallet-browser-041b5493dc43c9f8b69dc5a1dde4b319638618a7.tar.gz tangerine-wallet-browser-041b5493dc43c9f8b69dc5a1dde4b319638618a7.tar.zst tangerine-wallet-browser-041b5493dc43c9f8b69dc5a1dde4b319638618a7.zip |
Streamlined some transition logic
Fixes #122
Had used multiple actions for some transitions, which would lead to brief intermediary states.
Now making a few actions much more explicit about what they route to, so there is less intermediary logic, and we can transition confidently to the correct view.
Diffstat (limited to 'test/unit/actions/restore_vault_test.js')
-rw-r--r-- | test/unit/actions/restore_vault_test.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/unit/actions/restore_vault_test.js b/test/unit/actions/restore_vault_test.js index 5675028b1..609f5429e 100644 --- a/test/unit/actions/restore_vault_test.js +++ b/test/unit/actions/restore_vault_test.js @@ -21,7 +21,13 @@ describe('#recoverFromSeed(password, seed)', function() { // stub out account manager actions._setAccountManager({ - recoverFromSeed(pw, seed, cb) { cb(null, [{}, {}]) }, + recoverFromSeed(pw, seed, cb) { + cb(null, { + identities: { + foo: 'bar' + } + }) + }, }) it('sets metamask.isUnlocked to true', function() { |