From 41405ea39db26b03fbde5664add1cb116cc74467 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 15 Oct 2024 14:15:45 +0200 Subject: [PATCH] Add extra rows --- .../src/api/routes/tests/search.spec.ts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/packages/server/src/api/routes/tests/search.spec.ts b/packages/server/src/api/routes/tests/search.spec.ts index 3ab35c9294..ece84435bf 100644 --- a/packages/server/src/api/routes/tests/search.spec.ts +++ b/packages/server/src/api/routes/tests/search.spec.ts @@ -2609,6 +2609,21 @@ describe.each([ related1: [relatedRows[2]._id!], related2: [relatedRows[3]._id!], }), + config.api.row.save(tableOrViewId, { + name: "test3", + related1: [], + related2: [], + }), + config.api.row.save(tableOrViewId, { + name: "test4", + related1: [relatedRows[1]._id!], + related2: [], + }), + config.api.row.save(tableOrViewId, { + name: "test5", + related1: [], + related2: [relatedRows[1]._id!], + }), ]) }) @@ -2626,6 +2641,17 @@ describe.each([ related1: [{ _id: relatedRows[2]._id }], related2: [{ _id: relatedRows[3]._id }], }, + { + name: "test3", + }, + { + name: "test4", + related1: [{ _id: relatedRows[1]._id }], + }, + { + name: "test5", + related2: [{ _id: relatedRows[1]._id! }], + }, ]) })