Fix #1240 - Parse line and column numbers for fatal embertemplatelint errors

This commit is contained in:
w0rp
2017-12-19 17:42:51 +00:00
parent 0ad2547997
commit cc8e5502c8
2 changed files with 6 additions and 11 deletions

View File

@@ -32,14 +32,12 @@ Execute(The ember-template-lint handler should parse lines correctly):
AssertEqual
\ [
\ {
\ 'bufnr': 347,
\ 'lnum': 1,
\ 'col': 10,
\ 'text': 'bare-strings: Non-translated string used',
\ 'type': 'E',
\ },
\ {
\ 'bufnr': 347,
\ 'lnum': 3,
\ 'col': 6,
\ 'text': 'invalid-interactive: Interaction added to non-interactive element',
@@ -55,8 +53,8 @@ Execute(The ember-template-lint handler should handle template parsing error cor
\ "fatal": true,
\ "moduleId": "app/templates/application",
\ "message": "Parse error on line 5 ...",
\ "line": 1,
\ "column": 1,
\ "line": 5,
\ "column": 3,
\ "source": "Error: Parse error on line 5 ...",
\ "severity": 2
\ }
@@ -66,9 +64,8 @@ Execute(The ember-template-lint handler should handle template parsing error cor
AssertEqual
\ [
\ {
\ 'bufnr': 347,
\ 'lnum': 1,
\ 'col': 1,
\ 'lnum': 5,
\ 'col': 3,
\ 'text': 'Parse error on line 5 ...',
\ 'type': 'E',
\ },