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

View File

@ -21,7 +21,7 @@ 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"]
@ -35,7 +35,7 @@ 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
@ -49,7 +49,7 @@ 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