1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00
metamask-extension/test/unit
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
..
actions Remove seedWords completely from metamask state (#6920) 2019-07-26 10:35:21 -03:00
app Return after rejecting promise in action (#7079) 2019-08-31 13:34:27 -03:00
development Version 5.0.3 (#5785) 2018-11-20 08:34:14 -10:00
migrations Connections settings tab (#7013) 2019-08-15 18:37:18 -02:30
reducers Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
responsive/components Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
ui Return after rejecting promise in action (#7079) 2019-08-31 13:34:27 -03:00
balance-formatter-test.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
localhostState.js Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
test-utils.js test - unit - add assertRejects to test asyncFns 2018-06-13 21:01:00 -07:00
util_test.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30