chart.spec.tsx 456 B

12345678910111213
  1. import {render, screen} from 'sentry-test/reactTestingLibrary';
  2. import Chart from 'sentry/views/starfish/components/chart';
  3. describe('Chart', function () {
  4. test('it shows an error panel if an error prop is supplied', function () {
  5. const parsingError = new Error('Could not parse chart data');
  6. render(<Chart error={parsingError} data={[]} loading={false} />);
  7. expect(screen.getByTestId('chart-error-panel')).toBeInTheDocument();
  8. });
  9. });