We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42033a8 commit 8ba8803Copy full SHA for 8ba8803
packages/main/src/components/Text/Text.test.tsx
@@ -26,8 +26,10 @@ describe('Text', () => {
26
});
27
28
test('custom width', () => {
29
- const { asFragment } = render(<Text style={{ width: '300px' }}>Test</Text>);
30
- expect(asFragment());
+ const { getByText } = render(<Text style={{ width: '300px' }}>Test</Text>);
+ expect(getByText('Test')).toHaveStyle({
31
+ width: '300px'
32
+ });
33
34
35
createPassThroughPropsTest(Text);
0 commit comments