Browse Source

Merge pull request #7980 from nocodb/test/api-test-id-fix

test: change suite to emulate UI
pull/7969/head
Pranav C 8 months ago committed by GitHub
parent
commit
1019ba88f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 12
      packages/nocodb/tests/unit/factory/column.ts

12
packages/nocodb/tests/unit/factory/column.ts

@ -53,7 +53,7 @@ const customColumns = function (type: string, options: any = {}) {
case 'textBased':
return [
{
column_name: 'Id',
column_name: 'id',
title: 'Id',
uidt: UITypes.ID,
},
@ -86,7 +86,7 @@ const customColumns = function (type: string, options: any = {}) {
case 'numberBased':
return [
{
column_name: 'Id',
column_name: 'id',
title: 'Id',
uidt: UITypes.ID,
},
@ -124,7 +124,7 @@ const customColumns = function (type: string, options: any = {}) {
case 'dateBased':
return [
{
column_name: 'Id',
column_name: 'id',
title: 'Id',
uidt: UITypes.ID,
},
@ -142,7 +142,7 @@ const customColumns = function (type: string, options: any = {}) {
case 'selectBased':
return [
{
column_name: 'Id',
column_name: 'id',
title: 'Id',
uidt: UITypes.ID,
},
@ -162,7 +162,7 @@ const customColumns = function (type: string, options: any = {}) {
case 'userBased':
return [
{
column_name: 'Id',
column_name: 'id',
title: 'Id',
uidt: UITypes.ID,
},
@ -179,7 +179,7 @@ const customColumns = function (type: string, options: any = {}) {
},
];
case 'custom':
return [{ title: 'Id', column_name: 'Id', uidt: UITypes.ID }, ...options];
return [{ title: 'Id', column_name: 'id', uidt: UITypes.ID }, ...options];
}
};

Loading…
Cancel
Save