1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 04:20:53 +01:00
metamask-extension/ui
Mark Stacey daa20b4b63
Return after rejecting promise in action (#7079)
* Add missing test descriptions

* Fix async tests that expect a rejection

These tests expected the function under test to return a rejected
promise, and had assertions to be run in the `catch` clause. However,
the tests would still pass if the function didn't reject, with
the assertions never being run.

The tests have been updated to fail if the function doesn't throw.

* Handle ignored promise rejection

In the case where `forceUpdateMetamaskState` rejects, the function
`setSeedPhraseBackedUp` would never resolve. It has been updated to
pass along the rejection instead.

* Return after rejecting promise in action

A few actions would continue after encountering an error, resulting in
errors being compounded. Instead all actions will now return after
encountering an error (which it looks like was the intention in these
cases anyway).
2019-08-31 13:34:27 -03:00
..
app Return after rejecting promise in action (#7079) 2019-08-31 13:34:27 -03:00
design Revert "[ImgBot] Optimize images" (#7027) 2019-08-16 12:32:02 -02:30
lib Remove unused lostAccounts state (#6979) 2019-08-08 17:03:10 -02:30
index.html Move responsive ui into its own folder for easier merges 2017-07-20 12:38:38 -07:00
index.js Default Privacy Mode to ON, allow force sharing address (#6904) 2019-08-01 10:54:33 -02:30