Use api calls for createRow test helper
This commit is contained in:
parent
ce81248e66
commit
b3a59dfa7f
1 changed files with 2 additions and 2 deletions
|
@ -682,9 +682,9 @@ class TestConfiguration {
|
||||||
if (!this.table) {
|
if (!this.table) {
|
||||||
throw "Test requires table to be configured."
|
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!)
|
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> {
|
async getRow(tableId: string, rowId: string): Promise<Row> {
|
||||||
|
|
Loading…
Reference in a new issue