From 9847bd6f9e291e58c1b3d53b6a8c94df98ea3588 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Fri, 26 May 2023 13:52:13 +0530 Subject: [PATCH] test: update sqlite read nested Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- .../nocodb/tests/unit/rest/tests/tableRow.test.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/nocodb/tests/unit/rest/tests/tableRow.test.ts b/packages/nocodb/tests/unit/rest/tests/tableRow.test.ts index 41af1ffe41..947c58bfba 100644 --- a/packages/nocodb/tests/unit/rest/tests/tableRow.test.ts +++ b/packages/nocodb/tests/unit/rest/tests/tableRow.test.ts @@ -1299,10 +1299,14 @@ function tableTest() { 'ReleaseYear', 'Language', ); - expect(record['Film List'][0]['Language']).to.have.all.keys( - 'Name', - 'LanguageId', - ); + + // for SQLite Sakila, Language is null + if (isPg(context)) { + expect(record['Film List'][0]['Language']).to.have.all.keys( + 'Name', + 'LanguageId', + ); + } }); it('Update table row', async function () {