1
0
Fork 0
mirror of synced 2024-09-08 21:51:58 +12:00

Fix tests

This commit is contained in:
Adria Navarro 2023-09-08 10:34:45 +02:00
parent 3912517f67
commit 93e9b1b8b4
2 changed files with 7 additions and 7 deletions

View file

@ -125,7 +125,7 @@ export async function destroy(ctx: UserCtx) {
id: breakRowIdField(_id),
includeSqlRelationships: IncludeRelationship.EXCLUDE,
})) as { row: Row }
return { response: { ok: true }, row }
return { response: { ok: true, id: _id }, row }
}
export async function bulkDestroy(ctx: UserCtx) {

View file

@ -614,8 +614,8 @@ describe.each([
describe("bulkDelete", () => {
it("should be able to delete a bulk set of rows", async () => {
const row1 = await config.createRow()
const row2 = await config.createRow()
const row1 = await createRow()
const row2 = await createRow()
const rowUsage = await getRowUsage()
const queryUsage = await getQueryUsage()
@ -635,9 +635,9 @@ describe.each([
})
it("should be able to delete a variety of row set types", async () => {
const row1 = await config.createRow()
const row2 = await config.createRow()
const row3 = await config.createRow()
const row1 = await createRow()
const row2 = await createRow()
const row3 = await createRow()
const rowUsage = await getRowUsage()
const queryUsage = await getQueryUsage()
@ -657,7 +657,7 @@ describe.each([
})
it("should accept a valid row object and delete the row", async () => {
const row1 = await config.createRow()
const row1 = await createRow()
const rowUsage = await getRowUsage()
const queryUsage = await getQueryUsage()