diff --git a/spec/workspace-spec.coffee b/spec/workspace-spec.coffee index 9d48d34b7..1d60ce03a 100644 --- a/spec/workspace-spec.coffee +++ b/spec/workspace-spec.coffee @@ -451,9 +451,13 @@ describe "Workspace", -> waitsForPromise -> workspace.open('sample.js').then (e) -> editor = e - runs -> - expect(atom.applicationDelegate.confirm).toHaveBeenCalled() - expect(editor.largeFileMode).toBe true + runs -> + expect(atom.applicationDelegate.confirm).toHaveBeenCalled() + expect(editor.largeFileMode).toBe true + else + runs -> + expect(atom.applicationDelegate.confirm).not.toHaveBeenCalled() + expect(editor).not.toBeUndefined() it "prompts the user to make sure they want to open a file this big", -> atom.config.set "core.warnOnLargeFileLimit", 20