From 88b648f5cf33cf0019d25947e3906aab2f6b1293 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 25 May 2023 15:54:13 +0530 Subject: [PATCH] fix: pass fields argument properly Signed-off-by: Pranav C --- packages/nocodb/tests/unit/rest/tests/tableRow.test.ts | 4 +++- packages/nocodb/tests/unit/rest/tests/viewRow.test.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/tests/unit/rest/tests/tableRow.test.ts b/packages/nocodb/tests/unit/rest/tests/tableRow.test.ts index 689bf1fbc7..33122c9a15 100644 --- a/packages/nocodb/tests/unit/rest/tests/tableRow.test.ts +++ b/packages/nocodb/tests/unit/rest/tests/tableRow.test.ts @@ -1103,7 +1103,9 @@ function tableTest() { ); const nestedFields = { - 'Rental List': ['RentalDate', 'ReturnDate'], + 'Rental List': { + f: 'RentalDate,ReturnDate', + }, }; const nestedFilter = [ diff --git a/packages/nocodb/tests/unit/rest/tests/viewRow.test.ts b/packages/nocodb/tests/unit/rest/tests/viewRow.test.ts index 971c471879..3473c79bcf 100644 --- a/packages/nocodb/tests/unit/rest/tests/viewRow.test.ts +++ b/packages/nocodb/tests/unit/rest/tests/viewRow.test.ts @@ -901,7 +901,7 @@ function viewRowTests() { ); const nestedFields = { - 'Rental List': ['RentalDate', 'ReturnDate'], + 'Rental List': { f: 'RentalDate,ReturnDate' }, }; const nestedFilter = [