From: Jérôme Benoit Date: Fri, 25 Aug 2023 22:54:39 +0000 (+0200) Subject: test: trivial cleanup X-Git-Tag: v1.2.21~61 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0f6058f36dfbd50695c4a8cedd62ff2038732924;p=e-mobility-charging-stations-simulator.git test: trivial cleanup Signed-off-by: Jérôme Benoit --- diff --git a/test/utils/Utils.test.ts b/test/utils/Utils.test.ts index 05bf2bbb..80aec47b 100644 --- a/test/utils/Utils.test.ts +++ b/test/utils/Utils.test.ts @@ -48,8 +48,8 @@ describe('Utils test suite', () => { it('Verify sleep()', async () => { const start = performance.now(); await sleep(1000); - const end = performance.now(); - expect(end - start).toBeGreaterThanOrEqual(1000); + const stop = performance.now(); + expect(stop - start).toBeGreaterThanOrEqual(1000); }); it('Verify formatDurationMilliSeconds()', () => {