Use valid Linux report id
authorKevin Sawicki <kevinsawicki@gmail.com>
Wed, 5 Oct 2016 22:38:26 +0000 (15:38 -0700)
committerKevin Sawicki <kevinsawicki@gmail.com>
Thu, 6 Oct 2016 16:02:02 +0000 (09:02 -0700)
spec/api-crash-reporter-spec.js

index 92ccefe..5749efb 100644 (file)
@@ -60,10 +60,11 @@ describe('crashReporter module', function () {
         assert.equal(fields['_companyName'], 'Umbrella Corporation')
         assert.equal(fields['_version'], app.getVersion())
 
-        res.end('abc-123-def', () => {
-          assert.equal(crashReporter.getLastCrashReport().id, 'abc-123-def')
+        const reportId = 'abc-123-def-456-abc-789-abc-123-abcd'
+        res.end(reportId, () => {
+          assert.equal(crashReporter.getLastCrashReport().id, reportId)
           assert.notEqual(crashReporter.getUploadedReports().length, 0)
-          assert.equal(crashReporter.getUploadedReports()[0].id, 'abc-123-def')
+          assert.equal(crashReporter.getUploadedReports()[0].id, reportId)
           assert.equal(fs.existsSync(tempDirectory, 'Zombies Crahses'), true)
           done()
         })