From 43d933eca83ba0de92956854e84220462b7c4e91 Mon Sep 17 00:00:00 2001 From: Katrina Uychaco Date: Sat, 9 Jan 2016 17:18:07 -0800 Subject: [PATCH] Change order of tests --- spec/text-editor-spec.coffee | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/text-editor-spec.coffee b/spec/text-editor-spec.coffee index 686bb6868..2e85870e6 100644 --- a/spec/text-editor-spec.coffee +++ b/spec/text-editor-spec.coffee @@ -5811,9 +5811,11 @@ describe "TextEditor", -> waitsForPromise -> atom.workspace.open('sample.txt', pending: true).then (o) -> editor1 = o - it "should open file in pending state if 'pending' option is true", -> + it "does not open file in pending state by default", -> + expect(editor.isPending()).toBe false + + it "opens file in pending state if 'pending' option is true", -> expect(editor1.isPending()).toBe true - expect(editor.isPending()).toBe false # By default pending status is false it "invokes ::onDidTerminatePendingState observers if pending status is removed", -> events = [] @@ -5822,7 +5824,7 @@ describe "TextEditor", -> expect(editor1.isPending()).toBe false expect(events).toEqual [editor1] - it "should terminate pending state when buffer is changed", -> + it "terminates pending state when buffer is changed", -> events = [] editor1.onDidTerminatePendingState (event) -> events.push(event) expect(editor1.isPending()).toBe true