summaryrefslogtreecommitdiff
path: root/test/linter/test_markdown_markdownlint.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/linter/test_markdown_markdownlint.vader')
-rw-r--r--test/linter/test_markdown_markdownlint.vader13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/linter/test_markdown_markdownlint.vader b/test/linter/test_markdown_markdownlint.vader
new file mode 100644
index 00000000..12766cfd
--- /dev/null
+++ b/test/linter/test_markdown_markdownlint.vader
@@ -0,0 +1,13 @@
+Before:
+ call ale#assert#SetUpLinterTest('markdown', 'markdownlint')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The default command should be correct):
+ AssertLinter 'markdownlint', ale#Escape('markdownlint') . ' %s'
+
+Execute(The options should be configurable):
+ let g:ale_markdown_markdownlint_options = '--config ~/custom/.markdownlintrc'
+
+ AssertLinter 'markdownlint', ale#Escape('markdownlint') . ' --config ~/custom/.markdownlintrc %s'