Adding back mock clearing.

This commit is contained in:
mike12345567 2024-10-17 17:50:51 +01:00
parent 47de88f42f
commit d0df75c9e4
1 changed files with 5 additions and 0 deletions

View File

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