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() })