TokenizedBuffer constructor now takes an object

This commit is contained in:
Kevin Sawicki & Nathan Sobo 2013-08-14 16:34:54 -07:00
parent ad36b2c6a6
commit f00bb58932

View File

@ -407,7 +407,7 @@ describe "TokenizedBuffer", ->
describe ".bufferRangeForScopeAtPosition(selector, position)", ->
beforeEach ->
buffer = project.bufferForPath('sample.js')
tokenizedBuffer = new TokenizedBuffer(buffer)
tokenizedBuffer = new TokenizedBuffer({buffer})
fullyTokenize(tokenizedBuffer)
describe "when the selector does not match the token at the position", ->