UNPKG

eaz-utils

Version:

A cleverly organized set of utilities to make JavaScript and TypeScript development easier.

10 lines (8 loc) 247 B
import eaz from "../eaz"; test("eaz.sleep", async () => { const beforeTime = Date.now(); await eaz.sleep(50); const afterTime = Date.now(); expect(afterTime - beforeTime >= 49).toBe(true); expect(afterTime - beforeTime < 60).toBe(true); });