🔧 Linter's gotta lint
This commit is contained in:
parent
582ef30b4a
commit
ee67211035
1 changed files with 1 additions and 2 deletions
|
@ -263,13 +263,12 @@ describe('crashReporter module', () => {
|
||||||
|
|
||||||
// Let's find the newest report
|
// Let's find the newest report
|
||||||
const newestReport = reports.reduce((acc, cur) => {
|
const newestReport = reports.reduce((acc, cur) => {
|
||||||
const timestamp = new Date(cur.date).getTime();
|
const timestamp = new Date(cur.date).getTime()
|
||||||
return (timestamp > acc.timestamp)
|
return (timestamp > acc.timestamp)
|
||||||
? { report: cur, timestamp: timestamp }
|
? { report: cur, timestamp: timestamp }
|
||||||
: acc
|
: acc
|
||||||
}, { timestamp: 0 })
|
}, { timestamp: 0 })
|
||||||
|
|
||||||
|
|
||||||
assert(lastReport != null)
|
assert(lastReport != null)
|
||||||
assert(lastReport.date.toString() === newestReport.report.date.toString())
|
assert(lastReport.date.toString() === newestReport.report.date.toString())
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue