brasileirao
Version:
<p align="center"> <a href="https://github.com/godrix/brasileirao/actions"> <img src="https://img.shields.io/github/actions/workflow/status/godrix/brasileirao/publish.yml"/> </a> <a href="https://github.com/godrix/brasileirao"> <img src="htt
11 lines (10 loc) • 324 B
text/typescript
import {delay} from'../../utils'
describe('Delay', () => {
test('Should return a promise that resolves after the specified time', async () => {
const startTime = Date.now();
const ms = 1000;
await delay(ms);
const endTime = Date.now();
expect(endTime - startTime).toBeGreaterThanOrEqual(ms);
});
});