MCPcopy Create free account
hub / github.com/avoidwork/tenso / jsonParser

Function jsonParser

tests/unit/middleware-parse.test.js:62–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61 it("should parse body using registered parser", () => {
62 const jsonParser = body => JSON.parse(body);
63 mockReq.server.parsers.set("application/json", jsonParser);
64
65 parse(mockReq, mockRes, mockNext);

Callers 4

benchmarkJsonParserFunction · 0.85
testParserMemoryUsageFunction · 0.85
testParserMemoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected