From 36e304aaf5d7bb1df2ff835f0fc84f7ea4680182 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 3 Oct 2024 10:44:15 +0200 Subject: [PATCH] Unify --- packages/server/src/api/routes/tests/search.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/server/src/api/routes/tests/search.spec.ts b/packages/server/src/api/routes/tests/search.spec.ts index d6c149bf3f..cf3e2f6c1b 100644 --- a/packages/server/src/api/routes/tests/search.spec.ts +++ b/packages/server/src/api/routes/tests/search.spec.ts @@ -145,7 +145,7 @@ describe.each([ name: generator.guid(), schema, }) - return view + return view.id } async function createRows(arr: Record[]) { @@ -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((viewSchema, fieldName) => { const field = schema[fieldName] @@ -173,7 +173,7 @@ describe.each([ return viewSchema }, {}) ) - return view.id + return viewId }, ], ])("from %s", (tableOrView, createTableOrView) => {