import { Time } from '../Time' ; describe ( 'Time' , ( ) => { it ( 'parse' , ( ) => { const t0 = Time . parse ( '04:45' ) ; const t1 = Time . parse ( '00:30' ) ; expect ( t0 . format ( 'hh:mm a' ) ) . toBe ( '04:45 am' ) ; expect ( t1 . format ( 'hh:mm a' ) ) . toBe ( '12:30 am' ) ; } ) ; } ) ;