Skip to content

Commit

Permalink
Remove unnecessary use of async
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperbirch1 committed Oct 29, 2023
1 parent ac3628c commit 7de603d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/unit/notification-message.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(<ComponentWithNotificationMessage />);
const wrapper = getByTestId("wrapper");

Expand All @@ -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");

Expand Down

0 comments on commit 7de603d

Please sign in to comment.