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(
|
const [updateResponse, updatedApp] = await config.applications.update(
|
||||||
<string>app.appId,
|
<string>app.appId,
|
||||||
{
|
{
|
||||||
name: generator.word(),
|
name: generator.word()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
expect(updateResponse).toHaveStatusCode(200)
|
expect(updateResponse).toHaveStatusCode(200)
|
||||||
|
|
|
@ -2,7 +2,7 @@ import TestConfiguration from "../../../config/internal-api/TestConfiguration"
|
||||||
import { App } from "@budibase/types"
|
import { App } from "@budibase/types"
|
||||||
import InternalAPIClient from "../../../config/internal-api/TestConfiguration/InternalAPIClient"
|
import InternalAPIClient from "../../../config/internal-api/TestConfiguration/InternalAPIClient"
|
||||||
import generateApp from "../../../config/internal-api/fixtures/applications"
|
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"
|
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 () => {
|
it("POST - Create a screen with each role type", async () => {
|
||||||
// Create app
|
// Create app
|
||||||
const [appResponse, app] = await appConfig.applications.create(generateApp())
|
const app = await appConfig.applications.create(generateApp())
|
||||||
|
|
||||||
// Create Screen
|
// Create Screen
|
||||||
const roleArray = ["BASIC", "POWER", "ADMIN", "PUBLIC"]
|
const roleArray = ["BASIC", "POWER", "ADMIN", "PUBLIC"]
|
||||||
appConfig.applications.api.appId = app.appId
|
appConfig.applications.api.appId = app.appId
|
||||||
|
@ -35,8 +35,8 @@ describe("Internal API - /screens endpoints", () => {
|
||||||
|
|
||||||
it("GET - Fetch screens", async () => {
|
it("GET - Fetch screens", async () => {
|
||||||
// Create app
|
// Create app
|
||||||
const [appResponse, app] = await appConfig.applications.create(generateApp())
|
const app = await appConfig.applications.create(generateApp())
|
||||||
|
|
||||||
// Create Screen
|
// Create Screen
|
||||||
appConfig.applications.api.appId = app.appId
|
appConfig.applications.api.appId = app.appId
|
||||||
const [response, screen] = await config.screen.create(generateScreen("BASIC"))
|
const [response, screen] = await config.screen.create(generateScreen("BASIC"))
|
||||||
|
@ -49,8 +49,8 @@ describe("Internal API - /screens endpoints", () => {
|
||||||
|
|
||||||
it("DELETE - Delete a screen", async () => {
|
it("DELETE - Delete a screen", async () => {
|
||||||
// Create app
|
// Create app
|
||||||
const [appResponse, app] = await appConfig.applications.create(generateApp())
|
const app = await appConfig.applications.create(generateApp())
|
||||||
|
|
||||||
// Create Screen
|
// Create Screen
|
||||||
appConfig.applications.api.appId = app.appId
|
appConfig.applications.api.appId = app.appId
|
||||||
const [screenResponse, screen] = await config.screen.create(generateScreen("BASIC"))
|
const [screenResponse, screen] = await config.screen.create(generateScreen("BASIC"))
|
||||||
|
|
Loading…
Reference in New Issue