This commit is contained in:
Adria Navarro 2024-10-03 10:44:15 +02:00
parent 1b53bab92e
commit 36e304aaf5
1 changed files with 3 additions and 3 deletions

View File

@ -145,7 +145,7 @@ describe.each([
name: generator.guid(),
schema,
})
return view
return view.id
}
async function createRows(arr: Record<string, any>[]) {
@ -162,7 +162,7 @@ describe.each([
"view",
async (schema: TableSchema) => {
const tableId = await createTable(schema)
const view = await createView(
const viewId = await createView(
tableId,
Object.keys(schema).reduce<ViewV2Schema>((viewSchema, fieldName) => {
const field = schema[fieldName]
@ -173,7 +173,7 @@ describe.each([
return viewSchema
}, {})
)
return view.id
return viewId
},
],
])("from %s", (tableOrView, createTableOrView) => {