Skip to content

Commit

Permalink
Update src/app/base/components/TagSelector/TagSelector.test.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Makowski <me+github@petermakowski.io>
  • Loading branch information
Jay-Topher and petermakowski committed Apr 8, 2024
1 parent 2737a62 commit b414696
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/app/base/components/TagSelector/TagSelector.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,7 @@ describe("TagSelector", () => {
"new-tag"
);
await userEvent.click(screen.getByTestId("new-tag"));
expect(onAddNewTag).toHaveBeenCalledWith(
"new-tag",
expect.objectContaining({ type: "click", _reactName: "onClick" })
);
expect(onAddNewTag).toHaveBeenCalledWith("new-tag");
// The input should get cleared.
expect(screen.getByRole("textbox", { name: "Tags" })).toHaveValue("");
});
Expand Down

0 comments on commit b414696

Please sign in to comment.