1
0
Fork 0
mirror of synced 2024-10-04 20:13:35 +13:00
This commit is contained in:
Adria Navarro 2024-10-03 10:44:15 +02:00
parent 1b53bab92e
commit 36e304aaf5

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) => {