1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app
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
..
components add MetaMask Template Renderer (#10307) 2021-02-02 12:14:04 -06:00
contexts add new MetaMetricsController (#9857) 2020-12-02 15:41:30 -06:00
css Add box component (#10289) 2021-01-27 11:54:25 -06:00
ducks Use nock to intercept gas call for gas-duck test (#10334) 2021-02-02 13:14:03 -08:00
helpers add inverted info icon, and update props (#10305) 2021-02-01 12:10:19 -06:00
hooks Fix useTransactionDisplayData unit tests (#10134) 2021-01-04 09:45:54 -08:00
pages Fixup prop types and use constants (#10306) 2021-02-01 12:59:24 -06:00
selectors Add NETWORK_TYPE_RPC constant (#10203) 2021-01-20 08:49:05 -08:00
store Cancel transaction when swaps submission is failed because the simulation fails (#10288) 2021-01-26 17:01:25 -03:30