Add specs for save/saveAs error handling

This commit is contained in:
Kevin Sawicki
2015-02-05 15:07:42 -08:00
parent 63ee46023d
commit e51c8f3407
2 changed files with 39 additions and 0 deletions

View File

@@ -502,6 +502,7 @@ class Pane extends Model
newItemPath = atom.showSaveDialogSync(itemPath)
if newItemPath
try
console.log 'here?'
item.saveAs(newItemPath)
catch error
@handleSaveError(error)