Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

test: Id field no longer supported in payload - remove test case

Pranav C0a5c9b9a0cf7
diff --git a/packages/nocodb/tests/unit/rest/tests/dataApiV3/post-insert.test.ts b/packages/nocodb/tests/unit/rest/tests/dataApiV3/post-insert.test.ts
index f41964f001..d21f182fb4 100644
--- a/packages/nocodb/tests/unit/rest/tests/dataApiV3/post-insert.test.ts
+++ b/packages/nocodb/tests/unit/rest/tests/dataApiV3/post-insert.test.ts
@@ -117,15 +117,6 @@ describe('dataApiV3', () => {
status: 422,
});
- // Invalid data - create should not specify ID
- await ncAxiosPost({
- url: `${urlPrefix}/${table.id}/records`,
- body: { fields: { ...newRecord.fields, Id: 300 } },
- query: {
- undo: 'true',
- },
- status: 422,
- });
// Invalid data - number instead of string
// await ncAxiosPost({
// body: { ...newRecord, SingleLineText: 300 },