install.fairie/dotfiles/.vim/plugged/ale/test/linter/test_remark_lint.vader
Git E2E Dev Test Username e149692cc9 git subrepo clone https://github.com/dense-analysis/ale.git ./dotfiles/.vim/plugged/ale
subrepo:
  subdir:   "dotfiles/.vim/plugged/ale"
  merged:   "e4b205440"
upstream:
  origin:   "https://github.com/dense-analysis/ale.git"
  branch:   "master"
  commit:   "e4b205440"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:37:09 -04:00

37 lines
1.3 KiB
Text

Before:
" This is just one language for the linter.
call ale#assert#SetUpLinterTest('markdown', 'remark_lint')
After:
call ale#assert#TearDownLinterTest()
Execute(The default command should be correct):
AssertLinter 'remark',
\ ale#Escape('remark') . ' --no-stdout --no-color'
Execute(The executable should be configurable):
let b:ale_markdown_remark_lint_executable = 'foobar'
AssertLinter 'foobar',
\ ale#Escape('foobar') . ' --no-stdout --no-color'
Execute(The options should be configurable):
let b:ale_markdown_remark_lint_options = '--something'
AssertLinter 'remark',
\ ale#Escape('remark') . ' --something --no-stdout --no-color'
Execute(The local executable from .bin should be used if available):
call ale#test#SetFilename('../test-files/remark_lint/with_bin_path/foo.md')
AssertLinter
\ ale#path#Simplify(g:dir . '/../test-files/remark_lint/with_bin_path/node_modules/.bin/remark'),
\ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/remark_lint/with_bin_path/node_modules/.bin/remark'))
\ . ' --no-stdout --no-color'
Execute(The global executable should be uesd if the option is set):
let b:ale_markdown_remark_lint_use_global = 1
call ale#test#SetFilename('../test-files/remark_lint/with_bin_path/foo.md')
AssertLinter 'remark', ale#Escape('remark')
\ . ' --no-stdout --no-color'