import { create } from 'react-test-renderer'; import DatapointTrend from './Trend'; describe('DatapointTrend', () => { it('renders', () => { const tree = create( , ).toJSON(); expect(tree).toMatchSnapshot(); }); it('renders an accessibility label', () => { const tree = create( , ).toJSON(); expect(tree).toMatchSnapshot(); }); });