(body: Record<string, unknown>)
| 81 | } |
| 82 | |
| 83 | function callPost(body: Record<string, unknown>) { |
| 84 | const req = new NextRequest('http://localhost:3000/api/table/tbl_1/rows', { |
| 85 | method: 'POST', |
| 86 | headers: { 'Content-Type': 'application/json' }, |
| 87 | body: JSON.stringify(body), |
| 88 | }) |
| 89 | return POST(req, { params: Promise.resolve({ tableId: 'tbl_1' }) }) |
| 90 | } |
| 91 | |
| 92 | function callGet(query: Record<string, string>) { |
| 93 | const params = new URLSearchParams(query) |
no test coverage detected