import React from 'react'; import { render } from '@testing-library/react-native'; import { Card, Text } from '../..'; describe('', () => { it('should render children', () => { const { getByText } = render( Banana dance , ); expect(getByText('Banana dance')).toBeTruthy(); }); it('should render custom styles', () => { const style = { backgroundColor: 'teal' }; const { getByTestId } = render( Card , ); expect(getByTestId('card')).toHaveStyle(style); }); }); describe('', () => { it('should render children', () => { const { getByText } = render( Banana dance , ); expect(getByText('Banana dance')).toBeTruthy(); }); it('should render custom styles', () => { const style = { backgroundColor: 'teal' }; const { getByTestId } = render( , ); expect(getByTestId('content')).toHaveStyle(style); }); });