mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
1ab922972e
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. |
||
---|---|---|
.. | ||
controllers | ||
account-import-strategies.spec.js | ||
buy-eth-url.spec.js | ||
cleanErrorStack.spec.js | ||
ComposableObservableStore.js | ||
fetch-with-timeout.test.js | ||
message-manager-test.js | ||
nodeify-test.js | ||
personal-message-manager-test.js | ||
seed-phrase-verifier-test.js | ||
typed-message-manager.spec.js | ||
util-test.js |