From fbfb0096fe496caf873e0d762e57f4b90c99ef2c Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Thu, 29 Sep 2022 09:33:48 +0100 Subject: [PATCH] tidy up --- .../src/config/internal-api/fixtures/applications.ts | 10 +++++----- .../src/tests/internal-api/applications/create.spec.ts | 5 +---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/qa-core/src/config/internal-api/fixtures/applications.ts b/qa-core/src/config/internal-api/fixtures/applications.ts index 08bdb92ea6..dfad7e0b46 100644 --- a/qa-core/src/config/internal-api/fixtures/applications.ts +++ b/qa-core/src/config/internal-api/fixtures/applications.ts @@ -1,10 +1,10 @@ import generator from "../../generator" -// import { -// Application, -// CreateApplicationParams, -// } from "@budibase/server/api/controllers/public/mapping/types" +import { + Application, +} from "@budibase/server/api/controllers/public/mapping/types" -const generate = (overrides: any = {}): any => ({ + +const generate = (overrides: Partial = {}): Partial => ({ name: generator.word(), url: `/${generator.word()}`, ...overrides, 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 9a4576b127..a11640153c 100644 --- a/qa-core/src/tests/internal-api/applications/create.spec.ts +++ b/qa-core/src/tests/internal-api/applications/create.spec.ts @@ -33,10 +33,7 @@ describe("Internal API - /applications endpoints", () => { }) it("POST - Create an application", async () => { - const [response, app] = await config.applications.create({ - ...generateApp(), - useTemplate: false - }) + const [response, app] = await config.applications.create(generateApp()) expect(response).toHaveStatusCode(200) expect(app._id).toBeDefined() })