const {remote} = require('electron')
const {app, BrowserWindow, crashReporter} = remote.require('electron')
+const isCI = remote.getGlobal('isCi')
+
describe('crashReporter module', function () {
var fixtures = path.resolve(__dirname, 'fixtures')
var w = null
return
}
- var isCI = remote.getGlobal('isCi')
- if (isCI) {
- return
- }
-
it('should send minidump when renderer crashes', function (done) {
+ if (isCi) return
+
this.timeout(120000)
var called = false
w.loadURL(url)
})
- if (isCI && process.platform === 'win32') {
- return
- }
-
it('is set correctly when window is inactive', function (done) {
+ if (isCI && process.platform === 'win32') return done()
+
w = new BrowserWindow({
show: false
})