From c015f8d192416695e6b9200eb13749597ac475ad Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 31 Jul 2024 17:18:03 +0200 Subject: [PATCH] Run for both internal and external --- packages/server/src/api/routes/tests/table.spec.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/server/src/api/routes/tests/table.spec.ts b/packages/server/src/api/routes/tests/table.spec.ts index b96c08ea53..0d15919db4 100644 --- a/packages/server/src/api/routes/tests/table.spec.ts +++ b/packages/server/src/api/routes/tests/table.spec.ts @@ -1,5 +1,8 @@ import { context, docIds, events } from "@budibase/backend-core" -import { PROTECTED_EXTERNAL_COLUMNS } from "@budibase/shared-core" +import { + PROTECTED_EXTERNAL_COLUMNS, + PROTECTED_INTERNAL_COLUMNS, +} from "@budibase/shared-core" import { AutoFieldSubType, BBReferenceFieldSubType, @@ -1055,10 +1058,9 @@ describe.each([ }) }) - isInternal && - it.each(PROTECTED_EXTERNAL_COLUMNS)( - "don't allow protected names (%s)", - async columnName => { + it.each( + isInternal ? PROTECTED_INTERNAL_COLUMNS : PROTECTED_EXTERNAL_COLUMNS + )("don't allow protected names (%s)", async columnName => { const result = await config.api.table.validateNewTableImport( [ {