Fix some tests after merge
This commit is contained in:
parent
43ae4da422
commit
644a07c8a3
|
@ -119,7 +119,7 @@ describe("Internal API - /applications endpoints", () => {
|
|||
const [updateResponse, updatedApp] = await config.applications.update(
|
||||
<string>app.appId,
|
||||
{
|
||||
name: generator.word(),
|
||||
name: generator.word()
|
||||
}
|
||||
)
|
||||
expect(updateResponse).toHaveStatusCode(200)
|
||||
|
|
|
@ -2,7 +2,7 @@ import TestConfiguration from "../../../config/internal-api/TestConfiguration"
|
|||
import { App } from "@budibase/types"
|
||||
import InternalAPIClient from "../../../config/internal-api/TestConfiguration/InternalAPIClient"
|
||||
import generateApp from "../../../config/internal-api/fixtures/applications"
|
||||
import { Screen } from "@budibase/types"
|
||||
import { Screen } from "@budibase/types"
|
||||
import generateScreen from "../../../config/internal-api/fixtures/screens"
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@ describe("Internal API - /screens endpoints", () => {
|
|||
|
||||
it("POST - Create a screen with each role type", async () => {
|
||||
// Create app
|
||||
const [appResponse, app] = await appConfig.applications.create(generateApp())
|
||||
const app = await appConfig.applications.create(generateApp())
|
||||
|
||||
// Create Screen
|
||||
const roleArray = ["BASIC", "POWER", "ADMIN", "PUBLIC"]
|
||||
|
@ -35,7 +35,7 @@ describe("Internal API - /screens endpoints", () => {
|
|||
|
||||
it("GET - Fetch screens", async () => {
|
||||
// Create app
|
||||
const [appResponse, app] = await appConfig.applications.create(generateApp())
|
||||
const app = await appConfig.applications.create(generateApp())
|
||||
|
||||
// Create Screen
|
||||
appConfig.applications.api.appId = app.appId
|
||||
|
@ -49,7 +49,7 @@ describe("Internal API - /screens endpoints", () => {
|
|||
|
||||
it("DELETE - Delete a screen", async () => {
|
||||
// Create app
|
||||
const [appResponse, app] = await appConfig.applications.create(generateApp())
|
||||
const app = await appConfig.applications.create(generateApp())
|
||||
|
||||
// Create Screen
|
||||
appConfig.applications.api.appId = app.appId
|
||||
|
|
Loading…
Reference in New Issue