Clean code
This commit is contained in:
parent
8e73814675
commit
3bb85f6e46
|
@ -9,15 +9,10 @@ import supertest from "supertest"
|
||||||
import { Datasource, FieldType, SourceName } from "@budibase/types"
|
import { Datasource, FieldType, SourceName } from "@budibase/types"
|
||||||
|
|
||||||
const config = setup.getConfig()
|
const config = setup.getConfig()
|
||||||
let apiKey,
|
let apiKey, makeRequest: MakeRequestResponse, postgresDatasource: Datasource
|
||||||
table,
|
|
||||||
app,
|
|
||||||
makeRequest: MakeRequestResponse,
|
|
||||||
postgresDatasource: Datasource
|
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
app = await config.init()
|
await config.init()
|
||||||
table = await config.updateTable()
|
|
||||||
apiKey = await config.generateApiKey()
|
apiKey = await config.generateApiKey()
|
||||||
postgresDatasource = await config.createDatasource({
|
postgresDatasource = await config.createDatasource({
|
||||||
type: "datasource",
|
type: "datasource",
|
||||||
|
@ -35,6 +30,7 @@ beforeAll(async () => {
|
||||||
ca: false,
|
ca: false,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
makeRequest = generateMakeRequest(apiKey)
|
makeRequest = generateMakeRequest(apiKey)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue