summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-12-19 17:42:51 +0000
committerw0rp <devw0rp@gmail.com>2017-12-19 17:42:51 +0000
commitcc8e5502c8fd9d0d2ba405214e05f90b4152e2b2 (patch)
tree1c6c9677aef120bf464dadda2645836230edc7ef /test
parent0ad254799781ba1e00b13b26dfbee5c6fed9684f (diff)
downloadale-cc8e5502c8fd9d0d2ba405214e05f90b4152e2b2.zip
Fix #1240 - Parse line and column numbers for fatal embertemplatelint errors
Diffstat (limited to 'test')
-rw-r--r--test/handler/test_embertemplatelint_handler.vader11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/handler/test_embertemplatelint_handler.vader b/test/handler/test_embertemplatelint_handler.vader
index ea5313ca..97ca4390 100644
--- a/test/handler/test_embertemplatelint_handler.vader
+++ b/test/handler/test_embertemplatelint_handler.vader
@@ -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',
\ },