Browse Source

test: specify fields query param in right way

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3007/head
Pranav C 2 years ago
parent
commit
9552c2771e
  1. 4
      packages/nocodb/tests/unit/rest/tests/tableRow.test.ts
  2. 4
      packages/nocodb/tests/unit/rest/tests/viewRow.test.ts

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

@ -730,7 +730,7 @@ function tableTest() {
);
const nestedFields = {
'Rental List': ['RentalDate', 'ReturnDate'],
'Rental List': { fields : ['RentalDate', 'ReturnDate'] },
};
const nestedFilter = [
@ -805,7 +805,7 @@ function tableTest() {
ascResponse.body.list[0]['Rental List']
);
if (
nestedRentalResponse.includes('RentalId') &&
nestedRentalResponse.includes('ReturnDate') &&
nestedRentalResponse.includes('RentalDate') &&
nestedRentalResponse.length === 2
) {

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

@ -562,7 +562,7 @@ function viewRowTests() {
);
const nestedFields = {
'Rental List': ['RentalDate', 'ReturnDate'],
'Rental List': { fields : ['RentalDate', 'ReturnDate'] },
};
const nestedFilter = [
@ -638,7 +638,7 @@ function viewRowTests() {
if (
!(
nestedRentalResponse.includes('RentalId') &&
nestedRentalResponse.includes('ReturnDate') &&
nestedRentalResponse.includes('RentalDate') &&
nestedRentalResponse.length === 2
)

Loading…
Cancel
Save