MCPcopy Index your code
hub / github.com/simstudioai/sim / jsonResponse

Function jsonResponse

apps/sim/app/api/tools/brex/upload-receipt/route.test.ts:42–49  ·  view source on GitHub ↗
(body: unknown, status = 200)

Source from the content-addressed store, hash-verified

40}
41
42function jsonResponse(body: unknown, status = 200) {
43 return {
44 ok: status >= 200 && status < 300,
45 status,
46 text: async () => JSON.stringify(body),
47 json: async () => body,
48 }
49}
50
51beforeEach(() => {
52 vi.clearAllMocks()

Callers 1

route.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected