import { formatTimeDuration } from './DateUtils' ; describe ( 'Date utilities' , ( ) => { it ( 'formats time duration in seconds to days, hours, minutes and seconds' , ( ) => { const formattedTimeDuration = formatTimeDuration ( 96020 ) ; expect ( formattedTimeDuration ) . toStrictEqual ( { days : '01' , hours : '02' , minutes : '40' , seconds : '20' } ) ; } ) ; } ) ;