mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-13 08:44:12 +03:00
Make test more consistent
This commit is contained in:
parent
6abb5a2390
commit
7c6f9b1a81
@ -291,14 +291,16 @@ describe "RootView", ->
|
||||
|
||||
describe "when called with no path", ->
|
||||
it "creates a empty edit session as an item on a new pane, and focuses the pane", ->
|
||||
promise = rootView.openAsync().then (editSession) ->
|
||||
editSession = null
|
||||
|
||||
waitsForPromise ->
|
||||
rootView.openAsync().then (o) -> editSession = o
|
||||
|
||||
runs ->
|
||||
expect(rootView.getActivePane().activeItem).toBe editSession
|
||||
expect(editSession.getPath()).toBeUndefined()
|
||||
expect(rootView.getActivePane().focus).toHaveBeenCalled()
|
||||
|
||||
waitsForPromise ->
|
||||
promise
|
||||
|
||||
it "can create multiple empty edit sessions as items on a pane", ->
|
||||
editSession1 = null
|
||||
editSession2 = null
|
||||
|
Loading…
Reference in New Issue
Block a user