1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/test
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
..
data Use chainId values for the address book (#9565) 2020-10-12 16:35:55 -07:00
e2e Robustify waiting logic in e2e test (#9704) 2020-10-23 16:24:20 -07:00
lib Add unit tests for incoming transaction block events (#9755) 2020-10-30 11:47:36 -02:30
stub Fix fetching of swap quotes when initial network was testnet (#9726) 2020-10-27 13:22:21 -02:30
unit Add unit tests for incoming transaction block events (#9755) 2020-10-30 11:47:36 -02:30
unit-global Fix no-empty-function issues (#9216) 2020-08-14 09:17:02 -02:30
env.js Remove cross-env (#7950) 2020-01-30 14:11:26 -03:30
helper.js Update @metamask/eslint-config to v4.1.0 (#9663) 2020-10-21 14:01:03 -02:30
setup.js Remove obs-store babel register handling (#8413) 2020-04-27 07:54:42 -07:00