Browse Source

spec: Skip autoUpdater tests in MAS build

Cheng Zhao 9 years ago
parent
commit
3c4043fd39
1 changed files with 4 additions and 0 deletions
  1. 4 0
      spec/api-auto-updater-spec.js

+ 4 - 0
spec/api-auto-updater-spec.js

@@ -2,6 +2,10 @@ const assert = require('assert');
 const autoUpdater = require('electron').remote.autoUpdater;
 const ipcRenderer = require('electron').ipcRenderer;
 
+// Skip autoUpdater tests in MAS build.
+if (process.mas)
+  return;
+
 describe('autoUpdater module', function() {
   describe('checkForUpdates', function() {
     it('emits an error on Windows when called the feed URL is not set', function (done) {