summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdrián González Rus <adrian.gonzalez.rus@bbva.com>2018-03-22 11:40:47 +0100
committerAdrián González Rus <adrian.gonzalez.rus@bbva.com>2018-03-22 11:47:16 +0100
commit87217ae347f71836c2e47b84dfbf26b1f2630d94 (patch)
treef186a8aee5104abbbafff0f1cdb3c61d4043889a /test
parent0678eb1f45b08076a16a16e43a57b584a7d2cfc6 (diff)
downloadale-87217ae347f71836c2e47b84dfbf26b1f2630d94.zip
fix: Handle ranges for the remark linter #1207
Diffstat (limited to 'test')
-rw-r--r--test/handler/test_remark_lint_handler.vader11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/handler/test_remark_lint_handler.vader b/test/handler/test_remark_lint_handler.vader
index f61da199..0794d51c 100644
--- a/test/handler/test_remark_lint_handler.vader
+++ b/test/handler/test_remark_lint_handler.vader
@@ -19,12 +19,21 @@ Execute(Warning and error messages should be handled correctly):
\ 'type': 'E',
\ 'text': 'Incorrect list-item indent: remove 1 space list-item-indent remark-lint',
\ },
+ \ {
+ \ 'lnum': 18,
+ \ 'col': 71,
+ \ 'end_lnum': 19,
+ \ 'end_col': 1,
+ \ 'type': 'E',
+ \ 'text': 'Missing new line after list item list-item-spacing remark-lint',
+ \ },
\ ],
\ ale_linters#markdown#remark_lint#Handle(1, [
\ 'foo.md',
\ ' 1:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint',
\ ' 3:5 error Incorrect list-item indent: remove 1 space list-item-indent remark-lint',
+ \ ' 18:71-19:1 error Missing new line after list item list-item-spacing remark-lint',
\ '',
\ '⚠ 1 warnings',
- \ '✘ 1 errors',
+ \ '✘ 2 errors',
\])