diff --git a/spec/main-process/atom-application.new.test.js b/spec/main-process/atom-application.new.test.js index a42ed7a65..09bbd625f 100644 --- a/spec/main-process/atom-application.new.test.js +++ b/spec/main-process/atom-application.new.test.js @@ -331,7 +331,7 @@ class LaunchScenario { getOpenEditors (window) { return this.evalInWebContents(window.browserWindow.webContents, reply => { - reply(atom.workspace.getTextEditors().map(editor => editor.getPath())) + reply(atom.workspace.getTextEditors().map(editor => editor.getPath()).filter(Boolean)) }) }