Skip to content

Commit

Permalink
Bug solved in testings of NoDataCard.test.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardodeValle committed Jun 15, 2024
1 parent 302f69c commit abc0dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/NoDataCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe("NoDataCard Component", () => {
it("renders image on medium and larger screens", () => {
render(<NoDataCard text="No data available" />);

const imageElement = screen.getByAltText("No Data Image");
const imageElement = screen.getByAltText("NoDataSVG");
expect(imageElement).toBeInTheDocument();
expect(imageElement).toHaveClass("hidden md:block");
});
Expand Down

0 comments on commit abc0dd1

Please sign in to comment.