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

Function withFakeFetch

test/validatorDaemon.test.js:14–20  ·  view source on GitHub ↗
(impl, fn)

Source from the content-addressed store, hash-verified

12}
13
14function withFakeFetch(impl, fn) {
15 const original = global.fetch;
16 global.fetch = impl;
17 return Promise.resolve()
18 .then(fn)
19 .finally(() => { global.fetch = original; });
20}
21
22function mkRes(body) {
23 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected