Browse Source

test: bt list

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/7455/head
mertmit 11 months ago
parent
commit
a0094dc575
  1. 7
      packages/nocodb/tests/unit/rest/tests/newDataApis.test.ts

7
packages/nocodb/tests/unit/rest/tests/newDataApis.test.ts

@ -2511,7 +2511,7 @@ function linkBased() {
}
}
async function nestedListTests(validParams) {
async function nestedListTests(validParams, relationType?) {
// Link List: Invalid table ID
if (debugMode) console.log('Link List: Invalid table ID');
await ncAxiosLinkGet({
@ -2567,7 +2567,8 @@ function linkBased() {
await ncAxiosLinkGet({
...validParams,
query: { ...validParams.query, offset: 9999 },
status: 400,
// for BT relation we use btRead so we don't apply offset & limit, also we don't return page info where this check is done
status: relationType === 'bt' ? 200 : 400,
});
// Link List: Invalid query parameter - negative limit
@ -2731,7 +2732,7 @@ function linkBased() {
status: 200,
};
await nestedListTests(validParams);
await nestedListTests(validParams, 'bt');
});
// Error handling (many-many)

Loading…
Cancel
Save