1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/test
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
..
data Remove ComputedbalancesController (#7057) 2019-08-22 10:26:43 -02:30
e2e Return after rejecting promise in action (#7079) 2019-08-31 13:34:27 -03:00
integration Address book send plus contact list (#6914) 2019-07-31 17:26:44 -02:30
lib Check for unused function arguments (#6583) 2019-05-08 15:51:33 -04:00
stub Merge branch 'develop' into testing 2018-05-21 14:57:57 -07:00
unit Return after rejecting promise in action (#7079) 2019-08-31 13:34:27 -03:00
web3 Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
base.conf.js eslint --fix . 2018-07-02 18:49:33 -04:00
flat.conf.js eslint --fix . 2018-07-02 18:49:33 -04:00
helper.js 4byte fallback (#6551) 2019-06-18 09:47:14 -02:30
setup.js Upgrade to Babel 7 (#6942) 2019-08-02 13:17:20 -02:30