deleteMany -> bulkDelete
This commit is contained in:
parent
a4e212c0d8
commit
02ac338c3f
|
@ -630,7 +630,7 @@ describe.each([
|
||||||
const createdRow = await config.createRow()
|
const createdRow = await config.createRow()
|
||||||
const rowUsage = await getRowUsage()
|
const rowUsage = await getRowUsage()
|
||||||
|
|
||||||
const res = await config.api.row.deleteMany(table._id!, {
|
const res = await config.api.row.bulkDelete(table._id!, {
|
||||||
rows: [createdRow],
|
rows: [createdRow],
|
||||||
})
|
})
|
||||||
expect(res[0]._id).toEqual(createdRow._id)
|
expect(res[0]._id).toEqual(createdRow._id)
|
||||||
|
@ -682,7 +682,7 @@ describe.each([
|
||||||
const row2 = await config.createRow()
|
const row2 = await config.createRow()
|
||||||
const rowUsage = await getRowUsage()
|
const rowUsage = await getRowUsage()
|
||||||
|
|
||||||
const res = await config.api.row.deleteMany(table._id!, {
|
const res = await config.api.row.bulkDelete(table._id!, {
|
||||||
rows: [row1, row2],
|
rows: [row1, row2],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -699,7 +699,7 @@ describe.each([
|
||||||
])
|
])
|
||||||
const rowUsage = await getRowUsage()
|
const rowUsage = await getRowUsage()
|
||||||
|
|
||||||
const res = await config.api.row.deleteMany(table._id!, {
|
const res = await config.api.row.bulkDelete(table._id!, {
|
||||||
rows: [row1, row2._id!, { _id: row3._id }],
|
rows: [row1, row2._id!, { _id: row3._id }],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1073,7 +1073,7 @@ describe.each([
|
||||||
const createdRow = await config.createRow()
|
const createdRow = await config.createRow()
|
||||||
const rowUsage = await getRowUsage()
|
const rowUsage = await getRowUsage()
|
||||||
|
|
||||||
await config.api.row.deleteMany(view.id, { rows: [createdRow] })
|
await config.api.row.bulkDelete(view.id, { rows: [createdRow] })
|
||||||
|
|
||||||
await assertRowUsage(rowUsage - 1)
|
await assertRowUsage(rowUsage - 1)
|
||||||
|
|
||||||
|
@ -1099,7 +1099,7 @@ describe.each([
|
||||||
])
|
])
|
||||||
const rowUsage = await getRowUsage()
|
const rowUsage = await getRowUsage()
|
||||||
|
|
||||||
await config.api.row.deleteMany(view.id, { rows: [rows[0], rows[2]] })
|
await config.api.row.bulkDelete(view.id, { rows: [rows[0], rows[2]] })
|
||||||
|
|
||||||
await assertRowUsage(rowUsage - 2)
|
await assertRowUsage(rowUsage - 2)
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,7 @@ export class RowAPI extends TestAPI {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
deleteMany = async (
|
bulkDelete = async (
|
||||||
sourceId: string,
|
sourceId: string,
|
||||||
body: DeleteRows,
|
body: DeleteRows,
|
||||||
expectations?: Expectations
|
expectations?: Expectations
|
||||||
|
|
Loading…
Reference in New Issue