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