summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorrhysd <lin90162@yahoo.co.jp>2017-10-19 17:22:47 +0900
committerrhysd <lin90162@yahoo.co.jp>2017-10-19 18:17:04 +0900
commit4339af2bb6901c64ea9a104e4ed2f1589daf86aa (patch)
tree1a54581b4081a144e649d7837d2972c78b911caf /test
parent5292d2f3497604f526b05508d5891cf5d4b75c2b (diff)
downloadale-4339af2bb6901c64ea9a104e4ed2f1589daf86aa.zip
add support for remark-lint
Diffstat (limited to 'test')
-rw-r--r--test/handler/test_remark_lint_handler.vader27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/handler/test_remark_lint_handler.vader b/test/handler/test_remark_lint_handler.vader
new file mode 100644
index 00000000..f63e0c5b
--- /dev/null
+++ b/test/handler/test_remark_lint_handler.vader
@@ -0,0 +1,27 @@
+Before:
+ runtime ale_linters/markdown/remark_lint.vim
+
+Execute(Warning and error messages should be handled correctly):
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 1,
+ \ 'col': 4,
+ \ 'type': 'W',
+ \ 'text': 'Incorrect list-item indent: add 1 space list-item-indent remark-lint',
+ \ },
+ \ {
+ \ 'lnum': 3,
+ \ 'col': 5,
+ \ 'type': 'E',
+ \ 'text': 'Incorrect list-item indent: remove 1 space list-item-indent 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',
+ \ '',
+ \ '⚠ 1 warnings',
+ \ '✘ 1 errors',
+ \])