Fix AtomEnvironment tests

This commit is contained in:
Antonio Scandurra
2017-12-22 12:05:03 +01:00
parent 12bb45be77
commit 011766768a
2 changed files with 5 additions and 3 deletions

View File

@@ -1013,8 +1013,10 @@ class AtomEnvironment {
}
addProjectFolder () {
this.pickFolder((selectedPaths = []) => {
this.addToProject(selectedPaths)
return new Promise((resolve) => {
this.pickFolder((selectedPaths) => {
this.addToProject(selectedPaths || []).then(resolve)
})
})
}