Skip to content

Commit 8ba8803

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ describe('Text', () => {
2626
});
2727

2828
test('custom width', () => {
29-
const { asFragment } = render(<Text style={{ width: '300px' }}>Test</Text>);
30-
expect(asFragment());
29+
const { getByText } = render(<Text style={{ width: '300px' }}>Test</Text>);
30+
expect(getByText('Test')).toHaveStyle({
31+
width: '300px'
32+
});
3133
});
3234

3335
createPassThroughPropsTest(Text);

0 commit comments

Comments
 (0)