Skip to content

Commit

Permalink
Try testing differently
Browse files Browse the repository at this point in the history
  • Loading branch information
TrangPham committed Mar 11, 2024
1 parent 81b97bc commit a85f0c5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/controls/BooleanControl.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ test("handles onChange event correctly", async () => {

const checkbox = await screen.findByLabelText("Name");
expect(checkbox).not.toBeChecked();
// Called with the default when initialized
expect(updateData).toHaveBeenLastCalledWith(undefined);

await userEvent.click(checkbox);
expect(checkbox).toBeChecked();
Expand Down

0 comments on commit a85f0c5

Please sign in to comment.