(query: Record<string, string>)
| 90 | } |
| 91 | |
| 92 | function 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 | |
| 100 | describe('POST /api/table/[tableId]/rows', () => { |
| 101 | beforeEach(() => { |
no test coverage detected