Skip to content

Commit

Permalink
test(useDateFieldProps): drop unused act
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavPetrik committed Jan 30, 2025
1 parent 6f38224 commit 7c50ade
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hooks/use-date-field-props/useDateFieldProps.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { act, render, renderHook, screen } from "@testing-library/react";
import { render, renderHook, screen } from "@testing-library/react";
import { userEvent } from "@testing-library/user-event";
import { describe, expect, it } from "vitest";

Expand Down Expand Up @@ -37,7 +37,7 @@ describe("useDateFieldProps", () => {

const input = screen.getByTestId("date");

await act(() => userEvent.clear(input));
await userEvent.clear(input);

expect(result.current.value).toBe(undefined);
});
Expand All @@ -59,7 +59,7 @@ describe("useDateFieldProps", () => {

const input = screen.getByTestId("date");

await act(() => userEvent.type(input, getDateString()));
await userEvent.type(input, getDateString());

expect(result.current.value).toBeInstanceOf(Date);
});
Expand Down

0 comments on commit 7c50ade

Please sign in to comment.