summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2020-08-17 10:21:36 +0100
committerGitHub <noreply@github.com>2020-08-17 10:21:36 +0100
commit514e5a8baa539f38c62881673727be6f67935d75 (patch)
treecdf3e74a818ed18acf9433687511ddc6642c4218 /test/command_callback
parentcfda549056c4b85fba9e2f10ecb502c8a18d6011 (diff)
parent0cea55924ba7780c1f17d17e8509160c77d1ab7c (diff)
downloadale-514e5a8baa539f38c62881673727be6f67935d75.zip
Merge pull request #2940 from davidsierradz/add-markdownlint-options
allow passing custom options to markdownlint
Diffstat (limited to 'test/command_callback')
-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'