Fixing test cases.
This commit is contained in:
parent
d301ea48a9
commit
835e097d6e
2 changed files with 3 additions and 3 deletions
|
@ -74,7 +74,7 @@ describe("/applications", () => {
|
||||||
.expect('Content-Type', /json/)
|
.expect('Content-Type', /json/)
|
||||||
.expect(200)
|
.expect(200)
|
||||||
// should have empty packages
|
// 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)
|
expect(res.body.layouts.length).toEqual(2)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -87,7 +87,7 @@ describe("/applications", () => {
|
||||||
.expect('Content-Type', /json/)
|
.expect('Content-Type', /json/)
|
||||||
.expect(200)
|
.expect(200)
|
||||||
expect(res.body.application).toBeDefined()
|
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)
|
expect(res.body.layouts.length).toEqual(2)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -21,7 +21,7 @@ describe("/screens", () => {
|
||||||
.set(config.defaultHeaders())
|
.set(config.defaultHeaders())
|
||||||
.expect("Content-Type", /json/)
|
.expect("Content-Type", /json/)
|
||||||
.expect(200)
|
.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)
|
expect(res.body.some(s => s._id === screen._id)).toEqual(true)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue