removing random test file

This commit is contained in:
Martin McKeaveney 2022-09-26 18:26:09 +01:00
parent 57bbf28119
commit f7cfd9f0b3
1 changed files with 0 additions and 48 deletions

View File

@ -1,48 +0,0 @@
import TestConfiguration from "../../../config/internal-api/TestConfiguration"
import { Application } from "@budibase/server/api/controllers/public/mapping/types"
import InternalAPIClient from "../../../config/internal-api/TestConfiguration/InternalAPIClient"
describe("Internal API - /applications endpoints", () => {
const api = new InternalAPIClient()
const config = new TestConfiguration<Application>(api)
beforeAll(async () => {
await config.beforeAll()
await config.auth.login()
})
afterAll(async () => {
await config.afterAll()
})
// it("POST - Can login", async () => {
// // const [response] = await config.auth.login()
// expect(response).toHaveStatusCode(200)
// })
it("POST - Create an application", async () => {
const [response, app] = await config.applications.create({
name: "abc123",
url: "/foo",
useTemplate: false
})
expect(response).toHaveStatusCode(200)
expect(app._id).toBeDefined()
})
it("POST - Create an application with template", async () => {
const [response, app] = await config.applications.create({
name: "abc123",
url: "/foo",
useTemplate: true,
templateName: "Car Rental Admin Panel",
templateKey: "app/car-rental-admin-panel",
templateFile: undefined
})
const canRender = await config.applications.canRender(app._id)
expect(canRender).toBe(true)
expect(response).toHaveStatusCode(200)
expect(app._id).toBeDefined()
})
})