1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/test/unit/app
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
..
controllers transactions:tx-state-manager - optionally take a function as a search param (#7078) 2019-08-29 14:57:28 +02:00
account-import-strategies.spec.js fix warning for unit tests 2018-07-02 20:12:50 -04:00
buy-eth-url.spec.js Return after rejecting promise in action (#7079) 2019-08-31 13:34:27 -03:00
cleanErrorStack.spec.js Some Ui tests 2018-09-24 11:28:04 -05:00
ComposableObservableStore.js Moved loose some loose test files to sub folders 2018-05-21 05:59:26 -07:00
edge-encryptor-test.js Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
message-manager-test.js Moved loose some loose test files to sub folders 2018-05-21 05:59:26 -07:00
nodeify-test.js lint fix 2019-03-29 12:51:54 +08:00
pending-balance-test.js fix warning for unit tests 2018-07-02 20:12:50 -04:00
personal-message-manager-test.js Moved loose some loose test files to sub folders 2018-05-21 05:59:26 -07:00
seed-phrase-verifier-test.js fix warning for unit tests 2018-07-02 20:12:50 -04:00
util-test.js Close window after opening fullscreen (#6966) 2019-08-08 11:50:32 -03:00