import { delay } from './delay' ; const TEST_DELAY = 100 ; describe ( 'delay' , ( ) => { test ( 'works as expected' , async ( ) => { const timeStart = Date . now ( ) ; await delay ( TEST_DELAY ) ; expect ( Date . now ( ) - timeStart ) . toBeGreaterThanOrEqual ( TEST_DELAY - 1 ) ; } ) ; } ) ;