Adding back mock clearing.
This commit is contained in:
parent
47de88f42f
commit
d0df75c9e4
|
@ -110,6 +110,10 @@ describe("/screens", () => {
|
|||
})
|
||||
|
||||
describe("save", () => {
|
||||
beforeEach(() => {
|
||||
jest.clearAllMocks()
|
||||
})
|
||||
|
||||
it("should be able to create a screen", async () => {
|
||||
const screen = basicScreen()
|
||||
const responseScreen = await config.api.screen.save(screen, {
|
||||
|
@ -127,6 +131,7 @@ describe("/screens", () => {
|
|||
screen._id = responseScreen._id
|
||||
screen._rev = responseScreen._rev
|
||||
screen.name = "edit"
|
||||
jest.clearAllMocks()
|
||||
|
||||
responseScreen = await config.api.screen.save(screen, { status: 200 })
|
||||
|
||||
|
|
Loading…
Reference in New Issue