1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 12:56:01 +01:00
metamask-extension/test/unit/app/controllers
Mark Stacey b7033196d2
Add timeout to wait-until-called (#9996)
The `waitUntilCalled` utility now has a timeout. It will now throw an
error if the stub is not called enough times, rather than blocking
forever.

The return type had to be changed to a function, so that we could throw
when the timeout is triggered. I tried returning an error that rejected
first, but if you don't handle the error synchronously Node.js will
consider it to be an unhandled Promise rejected (even if it _is_
handled later on).

I worked around this by resolving in the timeout case as well, so that
there is never a "deferred" Promise exception in the timeout case. The
returned function re-throws the error if it's given. That way there is
never any unhandled Promise rejection.
2020-12-04 13:47:57 -03:30
..
network expand transaction constants coverage (#9790) 2020-11-07 01:38:12 -06:00
permissions json-rpc-engine@6.1.0 (#9922) 2020-12-02 11:41:24 -08:00
transactions Update transaction params validation (#9992) 2020-12-03 18:15:59 -08:00
cached-balances-test.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
detect-tokens-test.js @metamask/contract-metadata (#9968) 2020-12-01 14:55:01 -08:00
ens-controller-test.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
incoming-transactions-test.js Add timeout to wait-until-called (#9996) 2020-12-04 13:47:57 -03:30
metamask-controller-test.js add new MetaMetricsController (#9857) 2020-12-02 15:41:30 -06:00
metametrics-test.js Add timeout to wait-until-called (#9996) 2020-12-04 13:47:57 -03:30
preferences-controller-test.js Use method middleware for watchAsset (#9943) 2020-12-02 08:49:49 -08:00
swaps-test.js Alternative savings fix (#9675) 2020-11-09 13:39:38 -03:30
token-rates-controller.js Fix import/order issues (#9239) 2020-08-18 16:48:25 -02:30