|
|
@ -2511,7 +2511,7 @@ function linkBased() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async function nestedListTests(validParams) { |
|
|
|
async function nestedListTests(validParams, relationType?) { |
|
|
|
// Link List: Invalid table ID
|
|
|
|
// Link List: Invalid table ID
|
|
|
|
if (debugMode) console.log('Link List: Invalid table ID'); |
|
|
|
if (debugMode) console.log('Link List: Invalid table ID'); |
|
|
|
await ncAxiosLinkGet({ |
|
|
|
await ncAxiosLinkGet({ |
|
|
@ -2567,7 +2567,8 @@ function linkBased() { |
|
|
|
await ncAxiosLinkGet({ |
|
|
|
await ncAxiosLinkGet({ |
|
|
|
...validParams, |
|
|
|
...validParams, |
|
|
|
query: { ...validParams.query, offset: 9999 }, |
|
|
|
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
|
|
|
|
// Link List: Invalid query parameter - negative limit
|
|
|
@ -2731,7 +2732,7 @@ function linkBased() { |
|
|
|
status: 200, |
|
|
|
status: 200, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
await nestedListTests(validParams); |
|
|
|
await nestedListTests(validParams, 'bt'); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// Error handling (many-many)
|
|
|
|
// Error handling (many-many)
|
|
|
|