mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Update spec to use atom::close instead of window::close
This commit is contained in:
@@ -39,9 +39,9 @@ describe "Window", ->
|
||||
|
||||
describe "window:close event", ->
|
||||
it "closes the window", ->
|
||||
spyOn(window, 'close')
|
||||
spyOn(atom, 'close')
|
||||
$(window).trigger 'window:close'
|
||||
expect(window.close).toHaveBeenCalled()
|
||||
expect(atom.close).toHaveBeenCalled()
|
||||
|
||||
it "emits the beforeunload event", ->
|
||||
$(window).off 'beforeunload'
|
||||
|
||||
Reference in New Issue
Block a user