Skip autoupdater tests on Win32, we don't use electron autoUpdate there

This commit is contained in:
Damien Guard 2016-11-22 10:02:49 -08:00
parent 9e5353a343
commit cf0bae0301
No known key found for this signature in database
GPG Key ID: DC14FA2FB1465DB6
2 changed files with 5 additions and 0 deletions

View File

@ -401,6 +401,8 @@ describe "AtomEnvironment", ->
subscription?.dispose()
it "invokes onUpdateAvailable listeners", ->
return unless process.platform is 'darwin' # Test tied to electron autoUpdater, we use something else on Linux and Win32
atom.listenForUpdates()
updateAvailableHandler = jasmine.createSpy("update-available-handler")

View File

@ -5,6 +5,9 @@ import {remote} from 'electron'
const electronAutoUpdater = remote.require('electron').autoUpdater
describe('AutoUpdateManager (renderer)', () => {
if (process.platform !== 'darwin') return // Tests are tied to electron autoUpdater, we use something else on Linux and Win32
let autoUpdateManager
beforeEach(() => {