Browse Source

test: invalid field as 422 in new data APIs

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/6770/head
Raju Udava 1 year ago
parent
commit
7eb0613bd7
  1. 21
      packages/nocodb/tests/unit/rest/tests/newDataApis.test.ts

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

@ -865,16 +865,19 @@ function textBased() {
query: {
sort: 'abc',
},
status: 422,
});
await ncAxiosGet({
query: {
where: 'abc',
},
status: 422,
});
await ncAxiosGet({
query: {
fields: 'abc',
},
status: 422,
});
});
@ -2109,7 +2112,23 @@ function linkBased() {
linkId: getColumnId(columnsActor, 'Films'),
rowId: 1,
},
body: [{Id:1}, {Id:3}, {Id:5}, {Id:7}, {Id:9}, {Id:11}, {Id:13}, {Id:15}, {Id:17}, {Id:19}, {Id:21}, {Id:23}, {Id:25}, {Id:27}, {Id:29}],
body: [
{ Id: 1 },
{ Id: 3 },
{ Id: 5 },
{ Id: 7 },
{ Id: 9 },
{ Id: 11 },
{ Id: 13 },
{ Id: 15 },
{ Id: 17 },
{ Id: 19 },
{ Id: 21 },
{ Id: 23 },
{ Id: 25 },
{ Id: 27 },
{ Id: 29 },
],
});
// verify in Actor table

Loading…
Cancel
Save