summaryrefslogtreecommitdiff
path: root/test/linter/test_xo.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2023-09-16 22:22:01 +0100
committerw0rp <devw0rp@gmail.com>2023-09-16 22:23:30 +0100
commitae1d0515049ed135878672e06b51b083f5ae384d (patch)
tree1556645edaf786bc934be9cc8cc63408e65054d4 /test/linter/test_xo.vader
parent4b11cf21dc8406b579b89e50ae3f08ef2c0856e1 (diff)
downloadale-ae1d0515049ed135878672e06b51b083f5ae384d.zip
#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
Diffstat (limited to 'test/linter/test_xo.vader')
-rw-r--r--test/linter/test_xo.vader11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/linter/test_xo.vader b/test/linter/test_xo.vader
index 1aa4c3f1..a1e28836 100644
--- a/test/linter/test_xo.vader
+++ b/test/linter/test_xo.vader
@@ -9,15 +9,12 @@ Before:
After:
call ale#assert#TearDownLinterTest()
-Execute(The XO executable should be called):
+Execute(The default xo command should be correct):
AssertLinter 'xo', ale#Escape('xo') . ' --reporter json --stdin --stdin-filename %s'
-Execute(The XO executable should be configurable):
+Execute(The xo executable and command should be configurable):
let b:ale_javascript_xo_executable = 'foobar'
-
- AssertLinter 'foobar', ale#Escape('foobar') . ' --reporter json --stdin --stdin-filename %s'
-
-Execute(The XO options should be configurable):
let b:ale_javascript_xo_options = '--wat'
- AssertLinter 'xo', ale#Escape('xo') . ' --wat --reporter json --stdin --stdin-filename %s'
+ AssertLinter 'foobar', ale#Escape('foobar')
+ \ . ' --wat --reporter json --stdin --stdin-filename %s'