(body: unknown, tableId = 'tbl_1')
| 53 | } |
| 54 | |
| 55 | function makeRequest(body: unknown, tableId = 'tbl_1') { |
| 56 | const req = new NextRequest(`http://localhost:3000/api/table/${tableId}/import-async`, { |
| 57 | method: 'POST', |
| 58 | headers: { 'content-type': 'application/json' }, |
| 59 | body: JSON.stringify(body), |
| 60 | }) |
| 61 | return POST(req, { params: Promise.resolve({ tableId }) }) |
| 62 | } |
| 63 | |
| 64 | const validBody = { |
| 65 | workspaceId: 'workspace-1', |
no test coverage detected