Skip to content

Commit

Permalink
updating link test
Browse files Browse the repository at this point in the history
  • Loading branch information
lavr001 committed Nov 22, 2023
1 parent 085c519 commit c6d775b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/react/src/primitives/Link/__tests__/Link.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ describe('Link:', () => {
render(<Link isExternal>{linkText}</Link>);

const link = await screen.findByText(linkText);
expect(link.children.length).toBe(1);
expect(link.children[0].tagName).toBe('svg');
const span = link.children[0];
expect(span.children.length).toBe(1);
expect(span.children[0].tagName).toBe('svg');
});

it('can render the Link tag as other components', async () => {
Expand Down

0 comments on commit c6d775b

Please sign in to comment.