Skip to content

Commit

Permalink
add missing report.length > 1 assertion (electron#12257)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored and sethlu committed May 3, 2018
1 parent f6e1db7 commit 588c6c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/api-crash-reporter-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,10 @@ describe('crashReporter module', () => {
: acc
}, { timestamp: 0 })

assert(lastReport != null)
assert(lastReport.date.toString() === newestReport.report.date.toString())
assert(reports.length > 1, 'has more than 1 report')
assert(lastReport != null, 'found a last report')
assert(lastReport.date.toString() === newestReport.report.date.toString(),
'last report is correct')
})
})

Expand Down

0 comments on commit 588c6c9

Please sign in to comment.