add missing report.length > 1 assertion (#12257)

This commit is contained in:
Samuel Attard 2018-03-14 13:14:29 +09:00 committed by Charles Kerr
parent 8993a2c6ed
commit 90dc897f71

View file

@ -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')
})
})