Skip to content

Commit

Permalink
fixup! Feat(web): Add Message and Link for ToastBar #DS-1213
Browse files Browse the repository at this point in the history
  • Loading branch information
curdaj committed May 24, 2024
1 parent 240ec9e commit a8f152e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ describe('ToastBarLink', () => {
restPropsTest(ToastBarLink, 'a');

beforeEach(() => {
render(<ToastBarLink href="example-href">Example action</ToastBarLink>);
render(<ToastBarLink href="#example-href">Example action</ToastBarLink>);
});

it('should render with correct href', () => {
const element = screen.getByRole('link');

expect(element).toBeInTheDocument();
expect(element).toHaveAttribute('href', 'example-href');
expect(element).toHaveAttribute('href', '#example-href');
});

it('should render children', () => {
Expand Down

0 comments on commit a8f152e

Please sign in to comment.