summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-03-20 20:27:50 +0000
committerw0rp <devw0rp@gmail.com>2018-03-20 20:27:50 +0000
commit64c95d4881b9ae7b8e25b65240bb403298db16f8 (patch)
treed313ef40b534844e99a251c7612d77133f5f600a /test
parent57a93cbc04de402686494d47bd4147c827383086 (diff)
parent32091fb8ad01d46084305100f4aa074114141516 (diff)
downloadale-64c95d4881b9ae7b8e25b65240bb403298db16f8.zip
Merge remote-tracking branch 'tylucaskelley/master'
Diffstat (limited to 'test')
-rw-r--r--test/handler/test_markdownlint_handler.vader24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/handler/test_markdownlint_handler.vader b/test/handler/test_markdownlint_handler.vader
new file mode 100644
index 00000000..db6acc66
--- /dev/null
+++ b/test/handler/test_markdownlint_handler.vader
@@ -0,0 +1,24 @@
+Before:
+ runtime ale_linters/markdown/markdownlint.vim
+
+After:
+ call ale#linter#Reset()
+
+Execute(The Markdownlint handler should parse output correctly):
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 1,
+ \ 'text': '(MD002/first-header-h1) First header should be a top level header [Expected: h1; Actual: h2]',
+ \ 'type': 'W'
+ \ },
+ \ {
+ \ 'lnum': 298,
+ \ 'text': '(MD033/no-inline-html) Inline HTML [Element: p]',
+ \ 'type': 'W'
+ \ }
+ \ ],
+ \ ale#handlers#markdownlint#Handle(0, [
+ \ 'README.md: 1: MD002/first-header-h1 First header should be a top level header [Expected: h1; Actual: h2]',
+ \ 'README.md: 298: MD033/no-inline-html Inline HTML [Element: p]'
+ \ ])