mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Append anchor characters when placeholder is not added
This commit is contained in:
@@ -337,6 +337,14 @@ describe "TokenizedBuffer", ->
|
||||
afterEach ->
|
||||
editSession.destroy()
|
||||
|
||||
it "correctly parses a long line", ->
|
||||
longLine = tokenizedBuffer.lineForScreenRow(0)
|
||||
expect(longLine.text).toBe "longggggggggggggggggggggggggggggggggggggggggggggggg"
|
||||
{ tokens } = longLine
|
||||
|
||||
expect(tokens[0].value).toBe "longggggggggggggggggggggggggggggggggggggggggggggggg"
|
||||
expect(tokens[0].scopes).toEqual ["text.git-commit", "meta.scope.message.git-commit", "invalid.deprecated.line-too-long.git-commit"]
|
||||
|
||||
it "correctly parses the number sign of the first comment line", ->
|
||||
commentLine = tokenizedBuffer.lineForScreenRow(1)
|
||||
expect(commentLine.text).toBe "# Please enter the commit message for your changes. Lines starting"
|
||||
|
||||
Reference in New Issue
Block a user