Skip to content

Commit

Permalink
refine junky test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuspoehls committed Dec 12, 2023
1 parent 6321193 commit 93a18d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/support/test/interacts-with-time.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ test('currentTime', async () => {
const time = new InteractsWithTime()
const { stdout: unixTimestamp } = await exec('date +%s')

expect(time.currentTime()).toEqual(Number(unixTimestamp))
expect(time.currentTime()).toBeLessThan(Number(unixTimestamp) + 3)
expect(time.currentTime()).toBeGreaterThan(Number(unixTimestamp) - 3)
})

test('availableAt', async () => {
Expand Down

0 comments on commit 93a18d6

Please sign in to comment.