import React from 'react' ; import { StepFunction } from '@ringcentral-integration/test-utils' ; import { render } from '@ringcentral-integration/test-utils/lib/test-utils' ; import { CallHistoryPanel } from '../../../components/CallHistoryPanel' ; interface CallHistoryPanelProps { calls : any [ ] ; } export const UTListNoData = ( { calls , } ) => { const { container } = render ( < CallHistoryPanel calls = { calls } currentLocale = "en-US" / > ) ; const emptyNode = container . querySelector ( '.empty' ) ; expect ( emptyNode . innerHTML ) . toEqual ( 'No call records' ) ; } ;