From 62da8abdb831f7c9d0ffb3c0dcf5fae63157ef75 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 10 Oct 2024 17:42:09 +0100 Subject: [PATCH] reset mocks --- .../views/dialogs/security/CreateCrossSigningDialog-test.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/components/views/dialogs/security/CreateCrossSigningDialog-test.tsx b/test/components/views/dialogs/security/CreateCrossSigningDialog-test.tsx index a3ff35ff59..286b415b34 100644 --- a/test/components/views/dialogs/security/CreateCrossSigningDialog-test.tsx +++ b/test/components/views/dialogs/security/CreateCrossSigningDialog-test.tsx @@ -34,6 +34,11 @@ describe("CreateCrossSigningDialog", () => { }); }); + afterEach(() => { + jest.resetAllMocks(); + jest.restoreAllMocks(); + }); + it("should call createCrossSigning and show a spinner while it runs", async () => { const onFinished = jest.fn();