Browse Source

test: skip value population for Created and LastModified

pull/7304/head
Pranav C 9 months ago
parent
commit
f24960abb1
  1. 5
      packages/nocodb/tests/unit/factory/row.ts

5
packages/nocodb/tests/unit/factory/row.ts

@ -1,4 +1,4 @@
import { UITypes } from 'nocodb-sdk'; import { isCreatedTimeOrUpdatedTimeCol, UITypes } from 'nocodb-sdk'
import request from 'supertest'; import request from 'supertest';
import Model from '../../../src/models/Model'; import Model from '../../../src/models/Model';
import NcConnectionMgrv2 from '../../../src/utils/common/NcConnectionMgrv2'; import NcConnectionMgrv2 from '../../../src/utils/common/NcConnectionMgrv2';
@ -257,7 +257,8 @@ const generateDefaultRowAttributes = ({
if ( if (
column.uidt === UITypes.LinkToAnotherRecord || column.uidt === UITypes.LinkToAnotherRecord ||
column.uidt === UITypes.ForeignKey || column.uidt === UITypes.ForeignKey ||
column.uidt === UITypes.ID column.uidt === UITypes.ID ||
isCreatedTimeOrUpdatedTimeCol(column)
) { ) {
return acc; return acc;
} }

Loading…
Cancel
Save