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

Use api calls for getRow/s test helper

This commit is contained in:
Adria Navarro 2024-01-26 11:01:16 +01:00
parent b3a59dfa7f
commit 9592f25b66

View file

@ -688,14 +688,14 @@ class TestConfiguration {
}
async getRow(tableId: string, rowId: string): Promise<Row> {
return this._req(null, { tableId, rowId }, controllers.row.find)
return this.api.row.get(tableId, rowId)
}
async getRows(tableId: string) {
if (!tableId && this.table) {
tableId = this.table._id!
}
return this._req(null, { tableId }, controllers.row.fetch)
return this.api.row.fetch(tableId)
}
async searchRows(tableId: string, searchParams: SearchFilters = {}) {