mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 07:58:04 +03:00
Fix spec
This commit is contained in:
parent
e56fa3ec4f
commit
6dfbd5733d
@ -271,14 +271,12 @@ describe "Workspace", ->
|
||||
expect(workspace.getEditors()).toHaveLength 0
|
||||
|
||||
describe "when an editor is copied", ->
|
||||
it "emits an 'editor-created' event and stores the editor", ->
|
||||
it "emits an 'editor-created' event", ->
|
||||
handler = jasmine.createSpy('editorCreatedHandler')
|
||||
workspace.on 'editor-created', handler
|
||||
|
||||
editor1 = workspace.openSync("a")
|
||||
expect(handler.callCount).toBe 1
|
||||
expect(workspace.getEditors()).toEqual [editor1]
|
||||
|
||||
editor2 = editor1.copy()
|
||||
expect(handler.callCount).toBe 2
|
||||
expect(workspace.getEditors()).toEqual [editor1, editor2]
|
||||
|
Loading…
Reference in New Issue
Block a user