diff options
author | w0rp <devw0rp@gmail.com> | 2018-10-31 16:24:59 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-10-31 16:25:04 +0000 |
commit | 4b841b55869e3ec5b02806f9b2fe962ffdca2750 (patch) | |
tree | 36e8886ad42287e60760cf150955134f4217813f | |
parent | 5f206d900e3ae09cafc36f8038000fb13dbe3bab (diff) | |
download | ale-4b841b55869e3ec5b02806f9b2fe962ffdca2750.zip |
Fix the Windows tests
-rw-r--r-- | test/command_callback/test_jshint_command_callback.vader | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/command_callback/test_jshint_command_callback.vader b/test/command_callback/test_jshint_command_callback.vader index d665a9c1..517c957c 100644 --- a/test/command_callback/test_jshint_command_callback.vader +++ b/test/command_callback/test_jshint_command_callback.vader @@ -1,14 +1,17 @@ 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', '''jshint'' --reporter unix --extract auto --filename %s -' + 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', '''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 -' |