Use app name in crash dir path on linux/macos

This commit is contained in:
Kevin Sawicki 2017-04-19 16:53:57 -07:00
parent 709d2933b7
commit fae0308861

View file

@ -86,7 +86,7 @@ describe('crashReporter module', function () {
stopServer = startServer({
callback (port) {
const crashesDir = path.join(app.getPath('temp'), `Zombies Crashes`)
const crashesDir = path.join(app.getPath('temp'), `${process.platform === 'win32' ? 'Zombies' : app.getName()} Crashes`)
const version = app.getVersion()
const crashPath = path.join(fixtures, 'module', 'crash.js')