mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Use valid Linux report id
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user