1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 11:28:51 +01:00
metamask-extension/ui/app/ducks/gas
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
..
gas-duck.test.js Use nock to intercept gas call for gas-duck test (#10334) 2021-02-02 13:14:03 -08:00
gas.duck.js Fetch with a timeout everywhere (#10101) 2021-01-19 08:41:57 -08:00