Browse Source

:construction_worker: Fix the last broken test

Felix Rieseberg 7 years ago
parent
commit
bd4c7a114a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      spec/api-app-spec.js

+ 3 - 1
spec/api-app-spec.js

@@ -521,7 +521,9 @@ describe('app module', () => {
     })
 
     after(function (done) {
-      if (process.platform === 'win32') {
+      if (process.platform !== 'win32') {
+        done()
+      } else {
         const protocolKey = new Winreg({
           hive: Winreg.HKCU,
           key: `\\Software\\Classes\\${protocol}`