2018-03-03 08:27:19 -05:00
|
|
|
Before:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#SetUpLinterTest('markdown', 'mdl')
|
2018-03-03 08:27:19 -05:00
|
|
|
|
|
|
|
After:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2018-03-03 08:27:19 -05:00
|
|
|
|
|
|
|
Execute(The default command should be correct):
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'mdl', ale#Escape('mdl')
|
2018-03-03 08:27:19 -05:00
|
|
|
|
|
|
|
Execute(The executable and options should be configurable):
|
|
|
|
let g:ale_markdown_mdl_executable = 'foo bar'
|
|
|
|
let g:ale_markdown_mdl_options = '--wat'
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'foo bar', ale#Escape('foo bar') . ' --wat'
|
2018-05-01 18:29:06 -04:00
|
|
|
|
|
|
|
Execute(Setting bundle appends 'exec mdl'):
|
|
|
|
let g:ale_markdown_mdl_executable = 'path to/bundle'
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'path to/bundle', ale#Escape('path to/bundle') . ' exec mdl'
|