1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00
metamask-extension/ui/app/ducks
Thomas Huang df5f789391
Use nock to intercept gas call for gas-duck test (#10334)
* Use nock in to intercept gas call for gas-duck test

Use nock instead of stubbing out the window fetch. My suspicion is that when the test runs the window sometimes wouldn't be intialized/referenced, which could explain the intermittent test failures in those particular tests that call window.fetch.
Using nock allows the call to be intercepted more reliably.
2021-02-02 13:14:03 -08:00
..
alerts Add web3 shim usage notification (#10039) 2020-12-10 15:40:29 -08:00
app improve handling of last selected provider (#10093) 2021-01-06 17:31:11 -06:00
confirm-transaction Use strict equality in unit tests (#9966) 2020-12-03 09:46:22 -06:00
gas Use nock to intercept gas call for gas-duck test (#10334) 2021-02-02 13:14:03 -08:00
history [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
locale [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
metamask Add NETWORK_TYPE_RPC constant (#10203) 2021-01-20 08:49:05 -08:00
send Use strict equality in unit tests (#9966) 2020-12-03 09:46:22 -06:00
swaps Cancel transaction when swaps submission is failed because the simulation fails (#10288) 2021-01-26 17:01:25 -03:30
index.js Add web3 shim usage notification (#10039) 2020-12-10 15:40:29 -08:00