Browse Source

test: ltar to link corrections

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5848/head
Raju Udava 2 years ago
parent
commit
6abcbc572d
  1. 15
      packages/nocodb/tests/unit/rest/tests/tableRow.test.ts
  2. 14
      packages/nocodb/tests/unit/rest/tests/viewRow.test.ts

15
packages/nocodb/tests/unit/rest/tests/tableRow.test.ts

@ -1295,20 +1295,7 @@ function tableTest() {
.expect(200); .expect(200);
const record = response.body; const record = response.body;
expect(record['Film List']).length(19); expect(record['Film List']).to.equal(19);
expect(record['Film List'][0]).to.have.all.keys(
'Title',
'ReleaseYear',
'Language',
);
// 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 () { it('Update table row', async function () {

14
packages/nocodb/tests/unit/rest/tests/viewRow.test.ts

@ -701,19 +701,7 @@ function viewRowTests() {
throw new Error('Wrong filter'); throw new Error('Wrong filter');
} }
const nestedRentalResponse = Object.keys( expect(ascResponse.body.list[0]['Rental List']).to.equal(12);
ascResponse.body.list[0]['Rental List'][0],
);
if (
!(
nestedRentalResponse.includes('ReturnDate') &&
nestedRentalResponse.includes('RentalDate') &&
nestedRentalResponse.length === 2
)
) {
throw new Error('Wrong nested fields');
}
}; };
it('Get nested sorted filtered table with nested fields data list with a rollup column in customer table view grid', async () => { it('Get nested sorted filtered table with nested fields data list with a rollup column in customer table view grid', async () => {

Loading…
Cancel
Save