MCPcopy Create free account
hub / github.com/EvoMap/evolver / stubFetch

Function stubFetch

test/stakeBootstrap.test.js:76–80  ·  view source on GitHub ↗
(responder)

Source from the content-addressed store, hash-verified

74 });
75
76 function stubFetch(responder) {
77 const original = global.fetch;
78 global.fetch = async (url, init) => responder(url, init);
79 return () => { global.fetch = original; };
80 }
81
82 it('success resets backoff and schedules next attempt ~24h away', async () => {
83 const sb = freshRequire('../src/gep/validator/stakeBootstrap');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected