From 835e097d6e8a3fe47fc78636131e5cfd4d35e9ba Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 20 May 2021 16:18:09 +0100 Subject: [PATCH] Fixing test cases. --- packages/server/src/api/routes/tests/application.spec.js | 4 ++-- packages/server/src/api/routes/tests/screen.spec.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/server/src/api/routes/tests/application.spec.js b/packages/server/src/api/routes/tests/application.spec.js index 2ca0601d38..7f0bb9881d 100644 --- a/packages/server/src/api/routes/tests/application.spec.js +++ b/packages/server/src/api/routes/tests/application.spec.js @@ -74,7 +74,7 @@ describe("/applications", () => { .expect('Content-Type', /json/) .expect(200) // should have empty packages - expect(res.body.screens.length).toEqual(2) + expect(res.body.screens.length).toEqual(1) expect(res.body.layouts.length).toEqual(2) }) }) @@ -87,7 +87,7 @@ describe("/applications", () => { .expect('Content-Type', /json/) .expect(200) expect(res.body.application).toBeDefined() - expect(res.body.screens.length).toEqual(2) + expect(res.body.screens.length).toEqual(1) expect(res.body.layouts.length).toEqual(2) }) }) diff --git a/packages/server/src/api/routes/tests/screen.spec.js b/packages/server/src/api/routes/tests/screen.spec.js index 5533bc5e59..6a47b78853 100644 --- a/packages/server/src/api/routes/tests/screen.spec.js +++ b/packages/server/src/api/routes/tests/screen.spec.js @@ -21,7 +21,7 @@ describe("/screens", () => { .set(config.defaultHeaders()) .expect("Content-Type", /json/) .expect(200) - expect(res.body.length).toEqual(3) + expect(res.body.length).toEqual(2) expect(res.body.some(s => s._id === screen._id)).toEqual(true) })