This commit is contained in:
Martin McKeaveney 2022-09-29 09:33:48 +01:00
parent 943bd54879
commit 7842c5ccac
2 changed files with 6 additions and 9 deletions

View File

@ -1,10 +1,10 @@
import generator from "../../generator" import generator from "../../generator"
// import { import {
// Application, Application,
// CreateApplicationParams, } from "@budibase/server/api/controllers/public/mapping/types"
// } from "@budibase/server/api/controllers/public/mapping/types"
const generate = (overrides: any = {}): any => ({
const generate = (overrides: Partial<Application> = {}): Partial<Application> => ({
name: generator.word(), name: generator.word(),
url: `/${generator.word()}`, url: `/${generator.word()}`,
...overrides, ...overrides,

View File

@ -33,10 +33,7 @@ describe("Internal API - /applications endpoints", () => {
}) })
it("POST - Create an application", async () => { it("POST - Create an application", async () => {
const [response, app] = await config.applications.create({ const [response, app] = await config.applications.create(generateApp())
...generateApp(),
useTemplate: false
})
expect(response).toHaveStatusCode(200) expect(response).toHaveStatusCode(200)
expect(app._id).toBeDefined() expect(app._id).toBeDefined()
}) })