1
0
Fork 0
mirror of synced 2024-07-15 03:05:57 +12:00

Use api calls for createRow test helper

This commit is contained in:
Adria Navarro 2024-01-26 11:00:03 +01:00
parent ce81248e66
commit b3a59dfa7f

View file

@ -682,9 +682,9 @@ class TestConfiguration {
if (!this.table) {
throw "Test requires table to be configured."
}
const tableId = (config && config.tableId) || this.table._id
const tableId = (config && config.tableId) || this.table._id!
config = config || basicRow(tableId!)
return this._req(config, { tableId }, controllers.row.save)
return this.api.row.save(tableId, config)
}
async getRow(tableId: string, rowId: string): Promise<Row> {