Fix old electron require syntax in specs

This commit is contained in:
Drew Noel
2016-03-13 13:25:27 -04:00
committed by Wliu
parent 81d0874fa5
commit fb5bfe1b3a
2 changed files with 2 additions and 2 deletions

View File

@@ -365,7 +365,7 @@ describe "AtomEnvironment", ->
updateAvailableHandler = jasmine.createSpy("update-available-handler")
subscription = atom.onUpdateAvailable updateAvailableHandler
autoUpdater = require('remote').require('auto-updater')
autoUpdater = require('electron').remote.require('auto-updater')
autoUpdater.emit 'update-downloaded', null, "notes", "version"
waitsFor ->

View File

@@ -75,7 +75,7 @@ describe "WindowEventHandler", ->
describe "when a link is clicked", ->
it "opens the http/https links in an external application", ->
shell = require 'shell'
{shell} = require 'electron'
spyOn(shell, 'openExternal')
link = document.createElement('a')