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

Function responseFromJson

test/lifecycleNodeIdUnification.test.js:102–110  ·  view source on GitHub ↗
({ status = 200, json = {} } = {})

Source from the content-addressed store, hash-verified

100}
101
102function responseFromJson({ status = 200, json = {} } = {}) {
103 return {
104 ok: status >= 200 && status < 300,
105 status,
106 headers: { get: () => null },
107 json: async () => json,
108 text: async () => JSON.stringify(json),
109 };
110}
111
112// Drive EVOLVER_HOME so paths.getEvomapDir() routes to the fake dir.
113// Resetting _cachedNodeId before each case prevents a previous test's

Calls

no outgoing calls

Tested by

no test coverage detected