add missing report.length > 1 assertion (#12257)
This commit is contained in:
parent
8993a2c6ed
commit
90dc897f71
1 changed files with 4 additions and 2 deletions
|
@ -269,8 +269,10 @@ describe('crashReporter module', () => {
|
||||||
: acc
|
: acc
|
||||||
}, { timestamp: 0 })
|
}, { timestamp: 0 })
|
||||||
|
|
||||||
assert(lastReport != null)
|
assert(reports.length > 1, 'has more than 1 report')
|
||||||
assert(lastReport.date.toString() === newestReport.report.date.toString())
|
assert(lastReport != null, 'found a last report')
|
||||||
|
assert(lastReport.date.toString() === newestReport.report.date.toString(),
|
||||||
|
'last report is correct')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue