Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mimarz committed May 2, 2024
1 parent 02e9ea6 commit 57dd41f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/react/src/components/Link/Link.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,14 @@ describe('Link', () => {
const className = 'foo';
render({ className });
const link = screen.getByRole('link');
expect(link).toHaveClass('link');
expect(link).toHaveClass('fds-link');
expect(link).toHaveClass(className);
});

it('Is not inverted by default', () => {
render();
const link = screen.getByRole('link');
expect(link).not.toHaveClass('inverted');
});

it('Is inverted when the `inverted` property is `true`', () => {
render({ inverted: true });
const link = screen.getByRole('link');
expect(link).toHaveClass('inverted');
expect(link).toHaveClass('fds-link--inverted');
});

it('Sets the ref on the anchor element if given', () => {
Expand Down

0 comments on commit 57dd41f

Please sign in to comment.