UNPKG

@hayspec/spec

Version:

Core logic for Hayspec framework.

9 lines (7 loc) 207 B
import test from 'ava'; import { sleep } from '../../methods/sleep'; test('continues with timeout', async (t) => { const start = Date.now(); await sleep(2000); t.true(Date.now() >= start + 2000); });