Browse Source

:wrench: Actually test the method

Felix Rieseberg 7 years ago
parent
commit
673335de4b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      spec/api-crash-reporter-spec.js

+ 4 - 1
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])
     })
   })