mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Remove $native.saveDialog. It's replaced with atom.showSaveDialog
This commit is contained in:
@@ -321,11 +321,11 @@ describe "Editor", ->
|
||||
|
||||
expect(editor.getPath()).toBeUndefined()
|
||||
editor.getBuffer().setText 'Save me to a new path'
|
||||
spyOn($native, 'saveDialog').andCallFake -> selectedFilePath
|
||||
spyOn(atom, 'showSaveDialog').andCallFake (callback) -> callback(selectedFilePath)
|
||||
|
||||
it "presents a 'save as' dialog", ->
|
||||
editor.save()
|
||||
expect($native.saveDialog).toHaveBeenCalled()
|
||||
expect(atom.showSaveDialog).toHaveBeenCalled()
|
||||
|
||||
describe "when a path is chosen", ->
|
||||
it "saves the buffer to the chosen path", ->
|
||||
|
||||
Reference in New Issue
Block a user