tidy up
This commit is contained in:
parent
943bd54879
commit
7842c5ccac
|
@ -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<Application> = {}): Partial<Application> => ({
|
||||
name: generator.word(),
|
||||
url: `/${generator.word()}`,
|
||||
...overrides,
|
||||
|
|
|
@ -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()
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue