const { DateUtil } = require ( '@wireapp/commons' ) ; testEnvironment describe ( 'DateUtil' , ( ) => { describe ( 'isoFormat' , ( ) => { it ( 'formats a valid date into the expected format' , ( ) => { const date = new Date ( 1588599720000 ) ; const expectedDate = '2020-05-04' ; const expectedTime = '13:42:00' ; const actual = DateUtil . isoFormat ( date ) ; expect ( actual . date ) . toEqual ( expectedDate ) ; expect ( actual . time ) . toEqual ( expectedTime ) ; } ) ; } ) ; } ) ;