Expose csvToJson test utils
This commit is contained in:
parent
8afb1e6c42
commit
f3c18b87b1
|
@ -1,6 +1,8 @@
|
||||||
import {
|
import {
|
||||||
BulkImportRequest,
|
BulkImportRequest,
|
||||||
BulkImportResponse,
|
BulkImportResponse,
|
||||||
|
CsvToJsonRequest,
|
||||||
|
CsvToJsonResponse,
|
||||||
MigrateRequest,
|
MigrateRequest,
|
||||||
MigrateResponse,
|
MigrateResponse,
|
||||||
Row,
|
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,
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue