summaryrefslogtreecommitdiff
path: root/test/command_callback/test_markdown_markdownlint_command_callback.vader
diff options
context:
space:
mode:
authordavidsierradz <davidsierradz@gmail.com>2019-12-19 13:11:25 -0500
committerdavidsierradz <davidsierradz@gmail.com>2019-12-19 13:11:25 -0500
commit0cea55924ba7780c1f17d17e8509160c77d1ab7c (patch)
tree890b4c5a3c3153ee7f4ea9bb9c7ab91801b7c16c /test/command_callback/test_markdown_markdownlint_command_callback.vader
parent5f84325cd811ec179b7f3642652438c6a45b174d (diff)
downloadale-0cea55924ba7780c1f17d17e8509160c77d1ab7c.zip
allow passing custom options to markdownlint
Diffstat (limited to 'test/command_callback/test_markdown_markdownlint_command_callback.vader')
-rw-r--r--test/command_callback/test_markdown_markdownlint_command_callback.vader13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/command_callback/test_markdown_markdownlint_command_callback.vader b/test/command_callback/test_markdown_markdownlint_command_callback.vader
new file mode 100644
index 00000000..12766cfd
--- /dev/null
+++ b/test/command_callback/test_markdown_markdownlint_command_callback.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'