import { create } from 'react-test-renderer'; import Link from './Link'; import Status from './Status'; import Text from './Text'; describe('Status', () => { it('renders with basic title', () => { const tree = create().toJSON(); expect(tree).toMatchSnapshot(); }); it('renders with rich title', () => { const tree = create( Title } type="unstarted" />, ).toJSON(); expect(tree).toMatchSnapshot(); }); it('renders with title and subtext', () => { const tree = create( , ).toJSON(); expect(tree).toMatchSnapshot(); }); it('renders with accessibilityLabel', () => { const tree = create( , ).toJSON(); expect(tree).toMatchSnapshot(); }); });