1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00
metamask-extension/test/unit/app
Mark Stacey 1ab922972e
Reduce wait during incoming transaction unit tests (#9770)
Some of the unit tests for the incoming transaction controller included
a 1 second wait. The wait was to ensure that a state update did not
occur, as it happens asynchronously.

The tests work equally well using a `setTimeout` with a zero second
wait, because the asynchronous block update is guaranteed to have been
queued up by the time this timeout function is called. The timeout has
been reduced to `0` to speed up the tests.

Additionally, `undefined` has been added to the list of network names
used to construct the fake API responses. This is to ensure that the
API returns a valid response, so that the test fails when it should.
2020-11-03 17:46:28 -03:30
..
controllers Reduce wait during incoming transaction unit tests (#9770) 2020-11-03 17:46:28 -03:30
account-import-strategies.spec.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
buy-eth-url.spec.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
cleanErrorStack.spec.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
ComposableObservableStore.js Fix import/order issues (#9239) 2020-08-18 16:48:25 -02:30
fetch-with-timeout.test.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
message-manager-test.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
nodeify-test.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
personal-message-manager-test.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
seed-phrase-verifier-test.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
typed-message-manager.spec.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
util-test.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00