Fix old tests

This commit is contained in:
Adria Navarro 2023-01-20 10:12:52 +00:00
parent 7f53cbeca7
commit 12118fd028
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ beforeAll(async () => {
app = await config.init() app = await config.init()
table = await config.updateTable() table = await config.updateTable()
apiKey = await config.generateApiKey() apiKey = await config.generateApiKey()
makeRequest = generateMakeRequest(apiKey, setup) makeRequest = generateMakeRequest(apiKey)
}) })
afterAll(setup.afterAll) afterAll(setup.afterAll)

View File

@ -10,7 +10,7 @@ beforeAll(async () => {
await config.init() await config.init()
globalUser = await config.globalUser() globalUser = await config.globalUser()
apiKey = await config.generateApiKey(globalUser._id) apiKey = await config.generateApiKey(globalUser._id)
makeRequest = generateMakeRequest(apiKey, setup) makeRequest = generateMakeRequest(apiKey)
workerRequests.readGlobalUser.mockReturnValue(globalUser) workerRequests.readGlobalUser.mockReturnValue(globalUser)
}) })

View File

@ -1,5 +1,5 @@
import { objectStore, roles, constants } from "@budibase/backend-core" import { objectStore, roles, constants } from "@budibase/backend-core"
export { FieldType as FieldTypes } from "@budibase/types" export { FieldType as FieldTypes, RelationshipTypes } from "@budibase/types"
export enum FilterTypes { export enum FilterTypes {
STRING = "string", STRING = "string",