diff --git a/spec/api-crash-reporter-spec.js b/spec/api-crash-reporter-spec.js index b4d55cd70b..61c733c7c5 100644 --- a/spec/api-crash-reporter-spec.js +++ b/spec/api-crash-reporter-spec.js @@ -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]) }) })