Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Commit

Permalink
Make tests less brittle.
Browse files Browse the repository at this point in the history
  • Loading branch information
millette committed Oct 7, 2018
1 parent c9d0553 commit 0b2f24e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ test.skip('no commits', async t => {

test('some commits', async t => {
const result = await fn('Comarco')
t.is(result.streaks.length, 59)
t.is(result.commitDays, 209)
t.is(result.commits, 1415)
t.truthy(result.streaks.length > 50)
t.truthy(result.streaks.length < 70)
t.truthy(result.commitDays > 200)
t.truthy(result.commitDays < 220)
t.truthy(result.commits > 1400)
t.truthy(result.commits < 1450)
})

test.skip('buggy svg', async t => {
Expand Down

0 comments on commit 0b2f24e

Please sign in to comment.