Fix import

This commit is contained in:
Adria Navarro 2023-09-06 01:49:54 +02:00
parent 73d9be4161
commit 1c8060272d
1 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,6 @@ mocks.licenses.useUnlimited()
import { init as dbInit } from "../../db" import { init as dbInit } from "../../db"
dbInit() dbInit()
import env from "../../environment" import env from "../../environment"
import { env as coreEnv } from "@budibase/backend-core"
import { import {
basicTable, basicTable,
basicRow, basicRow,
@ -33,6 +32,7 @@ import {
encryption, encryption,
auth, auth,
roles, roles,
env as coreEnv,
} from "@budibase/backend-core" } from "@budibase/backend-core"
import * as controllers from "./controllers" import * as controllers from "./controllers"
import { cleanup } from "../../utilities/fileSystem" import { cleanup } from "../../utilities/fileSystem"
@ -51,7 +51,6 @@ import {
UserRoles, UserRoles,
Automation, Automation,
} from "@budibase/types" } from "@budibase/types"
import { BUILTIN_ROLE_IDS } from "@budibase/backend-core/src/security/roles"
import API from "./api" import API from "./api"
@ -317,7 +316,7 @@ class TestConfiguration {
} }
} }
async createGroup(roleId: string = BUILTIN_ROLE_IDS.BASIC) { async createGroup(roleId: string = roles.BUILTIN_ROLE_IDS.BASIC) {
return context.doInTenant(this.tenantId!, async () => { return context.doInTenant(this.tenantId!, async () => {
const baseGroup = structures.userGroups.userGroup() const baseGroup = structures.userGroups.userGroup()
baseGroup.roles = { baseGroup.roles = {