Files
ale/test/linter/test_xo.vader
w0rp ae1d051504 #4454 Clean up more tests and code
* Remove some tests we no longer need
* Delete blocks of redundant code
* Compress some tests together to simplify them
* Remove a little code for ancient linter versions
* Escape more executables we didn't escape before
* Rename a deno option that didn't match our conventions
2023-09-16 22:23:30 +01:00

21 lines
647 B
Plaintext

Before:
call ale#assert#SetUpLinterTest('javascript', 'xo')
call ale#test#SetFilename('testfile.jsx')
unlet! b:executable
set filetype=javascriptreact
runtime autoload/ale/handlers/xo.vim
After:
call ale#assert#TearDownLinterTest()
Execute(The default xo command should be correct):
AssertLinter 'xo', ale#Escape('xo') . ' --reporter json --stdin --stdin-filename %s'
Execute(The xo executable and command should be configurable):
let b:ale_javascript_xo_executable = 'foobar'
let b:ale_javascript_xo_options = '--wat'
AssertLinter 'foobar', ale#Escape('foobar')
\ . ' --wat --reporter json --stdin --stdin-filename %s'