🔧 Actually test the method

This commit is contained in:
Felix Rieseberg 2018-03-13 16:51:20 -07:00
parent 72579f9bab
commit 673335de4b

View file

@ -259,8 +259,11 @@ describe('crashReporter module', () => {
describe('getLastCrashReport', () => {
it('correctly returns the most recent report', () => {
const reports = crashReporter.getUploadedReports()
const lastReport = reports[0]
const lastReport = crashReporter.getLastCrashReport()
// In our case, the first report is actually the newest\
assert(lastReport != null)
assert(lastReport === reports[0])
})
})