mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Fix old electron require syntax in specs
This commit is contained in:
@@ -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 ->
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user