From 08a29df12fc965473b0c9e98e4d87fc84154710e Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Tue, 16 Apr 2019 15:38:03 -0400 Subject: [PATCH] Omit untitled editors (at least for now) --- spec/main-process/atom-application.new.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) }) }