Skip to content

Commit 42033a8

Browse files
Update packages/main/src/components/Text/Text.test.tsx
Co-authored-by: Marcus Notheis <[email protected]>
1 parent 744e31d commit 42033a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/main/src/components/Text/Text.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ describe('Text', () => {
2121

2222
test('Renders correct Text', () => {
2323
const el = 'My Text';
24-
const { asFragment } = render(<Text>{el}</Text>);
25-
expect(asFragment());
24+
const { container } = render(<Text>{el}</Text>);
25+
expect(container).toHaveTextContent(el);
2626
});
2727

2828
test('custom width', () => {

0 commit comments

Comments
 (0)