diff --git a/packages/nocodb/tests/unit/rest/tests/tableRow.test.ts b/packages/nocodb/tests/unit/rest/tests/tableRow.test.ts index 33fda3402e..d63a8131e0 100644 --- a/packages/nocodb/tests/unit/rest/tests/tableRow.test.ts +++ b/packages/nocodb/tests/unit/rest/tests/tableRow.test.ts @@ -2159,7 +2159,7 @@ function tableTest() { const updatedRow = await getRow(context, { project, table, id: row['Id'] }); // LTAR now returns rollup count - if (updatedRow['Ltar'] !== 0) { + if (!(updatedRow['Ltar'] === 0 || updatedRow['Ltar'] === '0')) { throw new Error('Was not deleted'); } diff --git a/packages/nocodb/tests/unit/rest/tests/viewRow.test.ts b/packages/nocodb/tests/unit/rest/tests/viewRow.test.ts index 11dd4bd947..2bfe1bada6 100644 --- a/packages/nocodb/tests/unit/rest/tests/viewRow.test.ts +++ b/packages/nocodb/tests/unit/rest/tests/viewRow.test.ts @@ -19,6 +19,7 @@ import { getOneRow, getRow, } from '../../factory/row'; +import { isPg } from '../../init/db'; import type { ColumnType } from 'nocodb-sdk'; import type View from '../../../../src/models/View'; import type Model from '../../../../src/models/Model'; @@ -681,7 +682,11 @@ function viewRowTests() { throw new Error('Wrong filter'); } - expect(ascResponse.body.list[0]['Rental List']).to.equal(12); + if (isPg(context)) { + expect(ascResponse.body.list[0]['Rental List']).to.equal('12'); + } else { + expect(ascResponse.body.list[0]['Rental List']).to.equal(12); + } }; it('Get nested sorted filtered table with nested fields data list with a rollup column in customer table view grid', async () => {