1
0
Fork 0
mirror of synced 2024-09-20 11:27:56 +12:00

Expose csvToJson test utils

This commit is contained in:
Adria Navarro 2024-08-02 10:55:20 +02:00
parent 8afb1e6c42
commit f3c18b87b1

View file

@ -1,6 +1,8 @@
import {
BulkImportRequest,
BulkImportResponse,
CsvToJsonRequest,
CsvToJsonResponse,
MigrateRequest,
MigrateResponse,
Row,
@ -99,4 +101,14 @@ export class TableAPI extends TestAPI {
}
)
}
csvToJson = async (
body: CsvToJsonRequest,
expectations?: Expectations
): Promise<CsvToJsonResponse> => {
return await this._post<CsvToJsonResponse>(`/api/convert/csvToJson`, {
body,
expectations,
})
}
}