Use app name in crash dir path on linux/macos
authorKevin Sawicki <kevinsawicki@gmail.com>
Wed, 19 Apr 2017 23:53:57 +0000 (16:53 -0700)
committerKevin Sawicki <kevinsawicki@gmail.com>
Thu, 20 Apr 2017 03:19:17 +0000 (20:19 -0700)
spec/api-crash-reporter-spec.js

index 4e387aad88121f441322057d07c4d262d44ba2ba..92020dbea6233c09025a2c7c51cd37f82bfc58c9 100644 (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')