import { render } from '@testing-library/react';
import { ChartLegendTooltipLabel } from './ChartLegendTooltipLabel';
import { ChartLabel } from '../ChartLabel/ChartLabel';
Object.values([true, false]).forEach(() => {
test('ChartLegendTooltipLabel', () => {
const { asFragment } = render(} />);
expect(asFragment()).toMatchSnapshot();
});
});
test('renders component text', () => {
const legendData = [
{ name: 'Cats' },
{ name: 'Dogs', symbol: { type: 'dash' } },
{ name: 'Birds' },
{ name: 'Mice' }
];
const { asFragment } = render(
}
valueLabelComponent={}
/>
);
expect(asFragment()).toMatchSnapshot();
});