From 6ca1676bcb476b18dff10a1f0b7e448c998e643d Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 24 Aug 2016 16:16:25 -0700 Subject: [PATCH] Access auto-updater through new electron API in AtomEnvironment spec --- spec/atom-environment-spec.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/atom-environment-spec.coffee b/spec/atom-environment-spec.coffee index cd8408a73..f3cb83bf0 100644 --- a/spec/atom-environment-spec.coffee +++ b/spec/atom-environment-spec.coffee @@ -407,7 +407,7 @@ describe "AtomEnvironment", -> updateAvailableHandler = jasmine.createSpy("update-available-handler") subscription = atom.onUpdateAvailable updateAvailableHandler - autoUpdater = require('electron').remote.require('auto-updater') + autoUpdater = require('electron').remote.autoUpdater autoUpdater.emit 'update-downloaded', null, "notes", "version" waitsFor ->