mirror of
https://github.com/robonen/tools.git
synced 2026-03-20 10:54:44 +00:00
refactor(packages/stdlib): add small margin to the expected value
This commit is contained in:
@@ -14,6 +14,6 @@ describe('sleep', () => {
|
|||||||
|
|
||||||
const end = performance.now();
|
const end = performance.now();
|
||||||
|
|
||||||
expect(end - start).toBeGreaterThanOrEqual(delay);
|
expect(end - start).toBeGreaterThan(delay - 5);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user