mirror of
https://github.com/atom/atom.git
synced 2026-02-17 10:01:25 -05:00
Project.open returns an editSession instead of a buffer.
First step in removing the coupling of Editor and Buffer. Editor should get all information about the active buffer from the activeEditSession.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
CommandInterpreter = require 'command-interpreter'
|
||||
Buffer = require 'buffer'
|
||||
EditSession = require 'edit-session'
|
||||
Editor = require 'editor'
|
||||
|
||||
describe "CommandInterpreter", ->
|
||||
@@ -7,7 +8,8 @@ describe "CommandInterpreter", ->
|
||||
|
||||
beforeEach ->
|
||||
buffer = new Buffer(require.resolve 'fixtures/sample.js')
|
||||
editor = new Editor({buffer})
|
||||
editSession = new EditSession({buffer})
|
||||
editor = new Editor({editSessions:[editSession]})
|
||||
interpreter = new CommandInterpreter()
|
||||
|
||||
describe "addresses", ->
|
||||
|
||||
Reference in New Issue
Block a user