Skip to content

Commit

Permalink
remove unnecessary assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh-vador committed Feb 20, 2024
1 parent 5364d73 commit 6b5acac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ const NotificationBox = ({
);

return (
<div className="notification-box" data-testid="notification-box">
<div className="notification-box">
<Typography.Title
className="p-x-md p-t-sm p-b-xss"
data-testid="notification-heading"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,10 @@ describe('Test NotificationBox Component', () => {
await act(async () => {
render(<NotificationBox {...mockProps} />);
});
const notificationBox = await screen.findByTestId('notification-box');
const notificationHeading = await screen.findByTestId(
'notification-heading'
);

expect(notificationBox).toBeInTheDocument();
expect(notificationHeading).toHaveTextContent('label.notification-plural');
});

Expand Down

0 comments on commit 6b5acac

Please sign in to comment.