github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/webapp/javascript/ui/NoData/NoData.spec.tsx (about) 1 import React from 'react'; 2 import { render, screen } from '@testing-library/react'; 3 import NoData from '.'; 4 5 describe('NoData', () => { 6 it('should render correctly', () => { 7 render(<NoData />); 8 9 expect(screen.getByTestId('no-data')).toBeInTheDocument(); 10 expect(screen.getByTestId('no-data')).toHaveTextContent( 11 'No data available' 12 ); 13 }); 14 });