Browse Source

Test: UT corrections

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5642/head
Raju Udava 2 years ago
parent
commit
3200530bc7
  1. 4
      packages/nocodb/tests/unit/model/tests/baseModelSql.test.ts

4
packages/nocodb/tests/unit/model/tests/baseModelSql.test.ts

@ -61,6 +61,10 @@ function baseModelSqlTests() {
response.CreatedAt = new Date(response.CreatedAt).toISOString(); response.CreatedAt = new Date(response.CreatedAt).toISOString();
response.UpdatedAt = new Date(response.UpdatedAt).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); expect(insertedRow).to.include(inputData);

Loading…
Cancel
Save