Fix some tests after merge

This commit is contained in:
Pedro Silva 2022-10-20 17:48:05 +01:00
parent 43ae4da422
commit 644a07c8a3
2 changed files with 8 additions and 8 deletions

View File

@ -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)

View File

@ -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,8 +21,8 @@ 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"]
appConfig.applications.api.appId = app.appId
@ -35,8 +35,8 @@ 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
const [response, screen] = await config.screen.create(generateScreen("BASIC"))
@ -49,8 +49,8 @@ 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
const [screenResponse, screen] = await config.screen.create(generateScreen("BASIC"))