From 7de603dd1e132ccbd50d08dfdd10eb672cf65822 Mon Sep 17 00:00:00 2001 From: Kasper Birch Date: Sun, 29 Oct 2023 12:28:02 +0100 Subject: [PATCH] Remove unnecessary use of async --- src/tests/unit/notification-message.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/unit/notification-message.test.tsx b/src/tests/unit/notification-message.test.tsx index 82639fb4ef..839e2fe8d6 100644 --- a/src/tests/unit/notification-message.test.tsx +++ b/src/tests/unit/notification-message.test.tsx @@ -35,7 +35,7 @@ describe("useNotificationMessage hook", () => { cleanup(); }); - it("should not display a message before the button is clicked", async () => { + it("should not display a message before the button is clicked", () => { const { getByTestId } = render(); const wrapper = getByTestId("wrapper"); @@ -57,7 +57,7 @@ describe("useNotificationMessage hook", () => { `); }); - it("should display a message after the button is clicked", async () => { + it("should display a message after the button is clicked", () => { vi.spyOn(window, "scrollTo"); vi.spyOn(window, "setTimeout");