Migrate RowAPI.bulkImport
This commit is contained in:
parent
02ac338c3f
commit
c0907d37ef
|
@ -123,14 +123,12 @@ export class RowAPI extends TestAPI {
|
||||||
bulkImport = async (
|
bulkImport = async (
|
||||||
tableId: string,
|
tableId: string,
|
||||||
body: BulkImportRequest,
|
body: BulkImportRequest,
|
||||||
{ expectStatus } = { expectStatus: 200 }
|
expectations?: Expectations
|
||||||
): Promise<BulkImportResponse> => {
|
): Promise<BulkImportResponse> => {
|
||||||
let request = this.request
|
return await this._post<BulkImportResponse>(`/api/${tableId}/rows/import`, {
|
||||||
.post(`/api/tables/${tableId}/import`)
|
body,
|
||||||
.send(body)
|
expectations,
|
||||||
.set(this.config.defaultHeaders())
|
})
|
||||||
.expect(expectStatus)
|
|
||||||
return (await request).body
|
|
||||||
}
|
}
|
||||||
|
|
||||||
search = async (
|
search = async (
|
||||||
|
|
Loading…
Reference in New Issue