summaryrefslogtreecommitdiff
path: root/test/fixers/test_remark_lint_fixer_callback.vader
diff options
context:
space:
mode:
authorblyoa <blyoa@users.noreply.github.com>2020-08-17 18:14:38 +0900
committerGitHub <noreply@github.com>2020-08-17 10:14:38 +0100
commitd5c1d842307a4c916905d5160544cfe152a16ee0 (patch)
tree85bc13692b7dadda74d54c9a409043ddc16d3a5a /test/fixers/test_remark_lint_fixer_callback.vader
parent5c778e1ae752163a849609318ace6c3c6a37d6f7 (diff)
downloadale-d5c1d842307a4c916905d5160544cfe152a16ee0.zip
Add remark-lint for a markdown fixer (#2836)
Diffstat (limited to 'test/fixers/test_remark_lint_fixer_callback.vader')
-rw-r--r--test/fixers/test_remark_lint_fixer_callback.vader24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/fixers/test_remark_lint_fixer_callback.vader b/test/fixers/test_remark_lint_fixer_callback.vader
new file mode 100644
index 00000000..5e2e342d
--- /dev/null
+++ b/test/fixers/test_remark_lint_fixer_callback.vader
@@ -0,0 +1,24 @@
+Before:
+ Save g:ale_markdown_remark_lint_executable
+ Save g:ale_markdown_remark_lint_options
+
+After:
+ Restore
+
+Execute(The remark callback should return the correct default values):
+ AssertEqual
+ \ {
+ \ 'command': ale#Escape('remark')
+ \ },
+ \ ale#fixers#remark_lint#Fix(bufnr(''))
+
+Execute(The remark executable and options should be configurable):
+ let g:ale_markdown_remark_lint_executable = '/path/to/remark'
+ let g:ale_markdown_remark_lint_options = '-h'
+
+ AssertEqual
+ \ {
+ \ 'command': ale#Escape('/path/to/remark')
+ \ . ' -h',
+ \ },
+ \ ale#fixers#remark_lint#Fix(bufnr(''))