1
0
Fork 0
mirror of synced 2024-06-02 02:25:17 +12:00

Fix extra declarations

This commit is contained in:
Pedro Silva 2022-10-13 15:18:36 +01:00
parent 4acadbe5f7
commit 672a40cd35

View file

@ -45,7 +45,7 @@ describe("Internal API - /applications endpoints", () => {
it("POST - Publish application", async () => {
// create app
const [response, app] = await config.applications.create(generateApp())
const app = await config.applications.create(generateApp())
// publish app
config.applications.api.appId = app.appId
@ -61,9 +61,7 @@ describe("Internal API - /applications endpoints", () => {
it("POST - Create an application from a template, publish and check it renders", async () => {
// create the app
const appName = generator.word()
const [response, app] = await createAppFromTemplate()
expect(response).toHaveStatusCode(200)
expect(app.appId).toBeDefined()
const app = await createAppFromTemplate()
config.applications.api.appId = app.appId
// check preview renders