mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
🔧 Linter's gotta lint
This commit is contained in:
@@ -263,13 +263,12 @@ describe('crashReporter module', () => {
|
||||
|
||||
// Let's find the newest report
|
||||
const newestReport = reports.reduce((acc, cur) => {
|
||||
const timestamp = new Date(cur.date).getTime();
|
||||
const timestamp = new Date(cur.date).getTime()
|
||||
return (timestamp > acc.timestamp)
|
||||
? { report: cur, timestamp: timestamp }
|
||||
: acc
|
||||
}, { timestamp: 0 })
|
||||
|
||||
|
||||
assert(lastReport != null)
|
||||
assert(lastReport.date.toString() === newestReport.report.date.toString())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user