(body: unknown, tableId = 'tbl_1')
| 82 | } |
| 83 | |
| 84 | function makeRequest(body: unknown, tableId = 'tbl_1') { |
| 85 | const req = new NextRequest(`http://localhost:3000/api/table/${tableId}/delete-async`, { |
| 86 | method: 'POST', |
| 87 | headers: { 'content-type': 'application/json' }, |
| 88 | body: JSON.stringify(body), |
| 89 | }) |
| 90 | return POST(req, { params: Promise.resolve({ tableId }) }) |
| 91 | } |
| 92 | |
| 93 | const validBody = { |
| 94 | workspaceId: 'workspace-1', |
no test coverage detected