Run for both internal and external

This commit is contained in:
Adria Navarro 2024-07-31 17:18:03 +02:00
parent 73eefa1046
commit c015f8d192
1 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,8 @@
import { context, docIds, events } from "@budibase/backend-core" 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 { import {
AutoFieldSubType, AutoFieldSubType,
BBReferenceFieldSubType, BBReferenceFieldSubType,
@ -1055,10 +1058,9 @@ describe.each([
}) })
}) })
isInternal && it.each(
it.each(PROTECTED_EXTERNAL_COLUMNS)( isInternal ? PROTECTED_INTERNAL_COLUMNS : PROTECTED_EXTERNAL_COLUMNS
"don't allow protected names (%s)", )("don't allow protected names (%s)", async columnName => {
async columnName => {
const result = await config.api.table.validateNewTableImport( const result = await config.api.table.validateNewTableImport(
[ [
{ {