1
0
Fork 0
mirror of synced 2024-11-18 06:55:33 -05:00
ultimate-vim/sources_non_forked/ale/test/linter/test_jshint.vader

18 lines
581 B
Text
Raw Normal View History

2022-05-19 09:16:38 -04:00
Before:
Save g:ale_jshint_config_loc
unlet! g:ale_jshint_config_loc
call ale#assert#SetUpLinterTest('javascript', 'jshint')
After:
call ale#assert#TearDownLinterTest()
Execute(The default command should be correct):
AssertLinter 'jshint', ale#Escape('jshint') . ' --reporter unix --extract auto --filename %s -'
Execute(Setting a config location should add the config parameter):
let g:ale_jshint_config_loc = '/some/file'
AssertLinter 'jshint', ale#Escape('jshint') . ' --reporter unix --extract auto --config ' . ale#Escape('/some/file') . ' --filename %s -'