Fixing test cases.

This commit is contained in:
mike12345567 2021-05-20 16:18:09 +01:00
parent d301ea48a9
commit 835e097d6e
2 changed files with 3 additions and 3 deletions

View File

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

View File

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