All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 call ale#assert#SetUpFixerTest('javascript', 'xo')
3 runtime autoload/ale/handlers/xo.vim
4 set filetype=javascript
7 call ale#assert#TearDownFixerTest()
9 Execute(The xo callback should return the correct default values):
10 call ale#test#SetFilename('../test-files/xo/monorepo/packages/a/index.js')
14 \ 'read_temporary_file': 1,
15 \ 'command': (has('win32') ? 'node.exe ' : '')
16 \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/xo/monorepo/node_modules/xo/cli.js'))
20 Execute(The xo callback should include custom xo options):
21 let g:ale_javascript_xo_options = '--space'
22 call ale#test#SetFilename('../test-files/xo/monorepo/packages/a/index.js')
26 \ 'read_temporary_file': 1,
27 \ 'command': (has('win32') ? 'node.exe ' : '')
28 \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/xo/monorepo/node_modules/xo/cli.js'))
33 Execute(--stdin should be used when xo is new enough):
34 let g:ale_javascript_xo_options = '--space'
35 call ale#test#SetFilename('../test-files/xo/monorepo/packages/a/index.js')
37 GivenCommandOutput ['0.30.0']
40 \ 'command': (has('win32') ? 'node.exe ' : '')
41 \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/xo/monorepo/node_modules/xo/cli.js'))
42 \ . ' --stdin --stdin-filename %s'