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 59aab93560
Add unit tests for incoming transaction block events (#9755)
Unit tests have been added to the incoming transactions controller to
ensure that block updates are correctly resulting in state updates when
incoming transactions are enabled. All other events that trigger state
updates are tested as well.

The tests were written to be minimally dependent upon implementation
details of the controller itself. `nock` was used to mock the API
response from Etherscan. Each event is triggered asynchronously by
`sinon`, as in production they are likely only triggered
asynchronously.

This was extracted from #9583

This PR includes a new `wait-until-called` module meant to help with
writing asynchronous tests. It allows you to wait until a stub has been
called.
2020-10-30 11:47:36 -02:30
..
controllers Add unit tests for incoming transaction block events (#9755) 2020-10-30 11:47:36 -02:30
account-import-strategies.spec.js Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
buy-eth-url.spec.js Update Wyre purchase URL (#9414) 2020-09-15 17:56:51 -02:30
cleanErrorStack.spec.js Update ESLint rules for test suite (#8023) 2020-02-11 13:21:13 -03:30
ComposableObservableStore.js Fix import/order issues (#9239) 2020-08-18 16:48:25 -02:30
fetch-with-timeout.test.js Enable arrow-parens ESLint rule 2020-02-15 17:04:21 -03:30
message-manager-test.js Fix no-empty-function issues (#9216) 2020-08-14 09:17:02 -02:30
nodeify-test.js Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
personal-message-manager-test.js Fix no-empty-function issues (#9216) 2020-08-14 09:17:02 -02:30
seed-phrase-verifier-test.js Replace clone dependency with cloneDeep from lodash (#7926) 2020-01-29 13:14:33 -04:00
typed-message-manager.spec.js Fix signTypedData_v4 chainId param validation (#9552) 2020-10-12 12:10:19 -07:00
util-test.js Merge pull request from GHSA-c2xw-px2x-pr65 2020-10-06 15:27:02 -02:30