Unify
This commit is contained in:
parent
1b53bab92e
commit
36e304aaf5
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue