import React from 'react' ; import { render } from '@testing-library/react' ; import { Section } from './section' ; import { expectTextsInDocument } from '../../../utils/testHelpers' ; describe ( 'Section' , ( ) => { it ( 'shows "empty state message" if no data is available' , ( ) => { const component = render ( < Section properties = { [ ] } / > ) ; expectTextsInDocument ( component , [ 'No data available' ] ) ; } ) ; } ) ;