Skip to content

Commit

Permalink
Fix tests to pass linter
Browse files Browse the repository at this point in the history
  • Loading branch information
darcyclarke committed Aug 6, 2019
1 parent ad17901 commit d218297
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})

Expand Down

0 comments on commit d218297

Please sign in to comment.