Clean code

This commit is contained in:
Adria Navarro 2023-01-18 13:55:24 +00:00
parent 8e73814675
commit 3bb85f6e46
1 changed files with 3 additions and 7 deletions

View File

@ -9,15 +9,10 @@ import supertest from "supertest"
import { Datasource, FieldType, SourceName } from "@budibase/types"
const config = setup.getConfig()
let apiKey,
table,
app,
makeRequest: MakeRequestResponse,
postgresDatasource: Datasource
let apiKey, makeRequest: MakeRequestResponse, postgresDatasource: Datasource
beforeAll(async () => {
app = await config.init()
table = await config.updateTable()
await config.init()
apiKey = await config.generateApiKey()
postgresDatasource = await config.createDatasource({
type: "datasource",
@ -35,6 +30,7 @@ beforeAll(async () => {
ca: false,
},
})
makeRequest = generateMakeRequest(apiKey)
})