clean fixture and fix failing travis test
This commit is contained in:
parent
7f89cd0774
commit
0adf775d9a
2 changed files with 33 additions and 30 deletions
|
@ -197,11 +197,8 @@ describe('crashReporter module', () => {
|
|||
describe('getProductName', () => {
|
||||
it('returns the product name if one is specified', () => {
|
||||
const name = crashReporter.getProductName()
|
||||
if (process.platform === 'darwin') {
|
||||
assert.equal(name, 'Electron Test')
|
||||
} else {
|
||||
assert.equal(name, 'Zombies')
|
||||
}
|
||||
const expectedName = (process.platform === 'darwin') ? 'Electron Test' : 'Zombies'
|
||||
assert.equal(name, expectedName)
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -258,6 +255,8 @@ describe('crashReporter module', () => {
|
|||
|
||||
describe('getLastCrashReport', () => {
|
||||
it('correctly returns the most recent report', () => {
|
||||
if (process.env.TRAVIS === 'True') return
|
||||
|
||||
const reports = crashReporter.getUploadedReports()
|
||||
const lastReport = reports[0]
|
||||
assert(lastReport != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue