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

Function callGet

apps/sim/app/api/table/[tableId]/rows/route.test.ts:92–98  ·  view source on GitHub ↗
(query: Record<string, string>)

Source from the content-addressed store, hash-verified

90}
91
92function callGet(query: Record<string, string>) {
93 const params = new URLSearchParams(query)
94 const req = new NextRequest(`http://localhost:3000/api/table/tbl_1/rows?${params}`, {
95 method: 'GET',
96 })
97 return GET(req, { params: Promise.resolve({ tableId: 'tbl_1' }) })
98}
99
100describe('POST /api/table/[tableId]/rows', () => {
101 beforeEach(() => {

Callers 1

route.test.tsFile · 0.70

Calls 2

GETFunction · 0.90
resolveMethod · 0.65

Tested by

no test coverage detected