mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-26 03:27:21 +08:00
Fix the Windows tests
This commit is contained in:
@@ -1,14 +1,17 @@
|
|||||||
Before:
|
Before:
|
||||||
|
Save g:ale_jshint_config_loc
|
||||||
|
|
||||||
|
unlet! g:ale_jshint_config_loc
|
||||||
|
|
||||||
call ale#assert#SetUpLinterTest('javascript', 'jshint')
|
call ale#assert#SetUpLinterTest('javascript', 'jshint')
|
||||||
|
|
||||||
After:
|
After:
|
||||||
call ale#assert#TearDownLinterTest()
|
call ale#assert#TearDownLinterTest()
|
||||||
|
|
||||||
Execute(The default command should be correct):
|
Execute(The default command should be correct):
|
||||||
|
AssertLinter 'jshint', ale#Escape('jshint') . ' --reporter unix --extract auto --filename %s -'
|
||||||
AssertLinter 'jshint', '''jshint'' --reporter unix --extract auto --filename %s -'
|
|
||||||
|
|
||||||
Execute(Setting a config location should add the config parameter):
|
Execute(Setting a config location should add the config parameter):
|
||||||
let g:ale_jshint_config_loc = '/some/file'
|
let g:ale_jshint_config_loc = '/some/file'
|
||||||
|
|
||||||
AssertLinter 'jshint', '''jshint'' --reporter unix --extract auto --config ''/some/file'' --filename %s -'
|
AssertLinter 'jshint', ale#Escape('jshint') . ' --reporter unix --extract auto --config ' . ale#Escape('/some/file') . ' --filename %s -'
|
||||||
|
|||||||
Reference in New Issue
Block a user