Close windows instead of destroying them

This commit is contained in:
Kevin Sawicki 2016-08-03 12:47:53 -07:00
parent cce6be1900
commit 0ebe142b2f
10 changed files with 45 additions and 62 deletions

View file

@ -3,6 +3,7 @@ const http = require('http')
const multiparty = require('multiparty')
const path = require('path')
const url = require('url')
const {closeWindow} = require('./window-helpers')
const remote = require('electron').remote
const app = remote.require('electron').app
@ -20,7 +21,7 @@ describe('crash-reporter module', function () {
})
afterEach(function () {
w.destroy()
return closeWindow(w).then(function () { w = null })
})
if (process.mas) {