From 672a40cd35c62d779ede1dea4e3c1c271b328826 Mon Sep 17 00:00:00 2001 From: Pedro Silva Date: Thu, 13 Oct 2022 15:18:36 +0100 Subject: [PATCH] Fix extra declarations --- qa-core/src/tests/internal-api/applications/create.spec.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qa-core/src/tests/internal-api/applications/create.spec.ts b/qa-core/src/tests/internal-api/applications/create.spec.ts index cc4b52125f..f10637bf99 100644 --- a/qa-core/src/tests/internal-api/applications/create.spec.ts +++ b/qa-core/src/tests/internal-api/applications/create.spec.ts @@ -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