From 6abe6726bcbec5ce0077feac0c8e7fe5dfe17b6b Mon Sep 17 00:00:00 2001 From: Rohan Chougule Date: Fri, 21 Aug 2020 16:42:49 +0530 Subject: [PATCH] fix: expected time difference post wait call (#45) * fix: expected time difference post wait call * fix the expected condition using toBeGreaterThanOrEqual --- index.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.test.js b/index.test.js index 55d91bc..d99ca3a 100644 --- a/index.test.js +++ b/index.test.js @@ -12,7 +12,7 @@ test('wait 500 ms', async () => { await wait(500); const end = new Date(); var delta = Math.abs(end - start); - expect(delta).toBeGreaterThan(450); + expect(delta).toBeGreaterThanOrEqual(500); }); // shows how the runner will run a javascript action with env / stdout protocol