MCPcopy Create free account
hub / github.com/simstudioai/sim / okResponse

Function okResponse

apps/sim/app/api/providers/ollama-cloud/models/route.test.ts:44–49  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

42const OLLAMA_CLOUD_TAGS_URL = 'https://ollama.com/api/tags'
43
44const okResponse = (body: unknown) => ({
45 ok: true,
46 status: 200,
47 statusText: 'OK',
48 json: vi.fn().mockResolvedValue(body),
49})
50
51const errorResponse = (status: number, statusText = 'Unauthorized') => ({
52 ok: false,

Callers 1

route.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected