Run for both internal and external
This commit is contained in:
parent
73eefa1046
commit
c015f8d192
|
@ -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(
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue