From d218297fe37f6bc08414b3a682da24a885faacff Mon Sep 17 00:00:00 2001 From: Darcy Clarke Date: Tue, 6 Aug 2019 16:20:53 -0400 Subject: [PATCH] Fix tests to pass linter --- test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test.js b/test.js index 5002dc7..9d1b2e6 100644 --- a/test.js +++ b/test.js @@ -2,16 +2,16 @@ const test = require('ava') const { sleep, snooze, over } = require('./index') test('sleep', t => { - let start = new Date() + const start = new Date() sleep(500) - let diff = Math.floor((new Date() - start) / 100) * 100 + const diff = Math.floor((new Date() - start) / 100) * 100 t.is((diff === 500), true, 'Delay execution 500ms') }) test('snooze', async t => { - let start = new Date() + const start = new Date() await snooze(500) - let diff = Math.floor((new Date() - start) / 100) * 100 + const diff = Math.floor((new Date() - start) / 100) * 100 t.is((diff === 500), true, 'Delay execution 500ms') })