From 3200530bc77847f2e31b024584240d1aed5d11e5 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Wed, 10 May 2023 11:50:54 +0530 Subject: [PATCH] Test: UT corrections Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- packages/nocodb/tests/unit/model/tests/baseModelSql.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/nocodb/tests/unit/model/tests/baseModelSql.test.ts b/packages/nocodb/tests/unit/model/tests/baseModelSql.test.ts index c47c389f66..13075be5fb 100644 --- a/packages/nocodb/tests/unit/model/tests/baseModelSql.test.ts +++ b/packages/nocodb/tests/unit/model/tests/baseModelSql.test.ts @@ -61,6 +61,10 @@ function baseModelSqlTests() { response.CreatedAt = new Date(response.CreatedAt).toISOString(); response.UpdatedAt = new Date(response.UpdatedAt).toISOString(); + } else if (isSqlite(context)) { + // append +00:00 to the date string + inputData.CreatedAt = `${inputData.CreatedAt}+00:00`; + inputData.UpdatedAt = `${inputData.UpdatedAt}+00:00`; } expect(insertedRow).to.include(inputData);