1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui
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
..
app Use nock to intercept gas call for gas-duck test (#10334) 2021-02-02 13:14:03 -08:00
lib Further improve organization of constants (#10200) 2021-01-20 08:13:14 -08:00
index.js Further improve organization of constants (#10200) 2021-01-20 08:13:14 -08:00