#1303 jq isn't a Node program
This commit is contained in:
parent
bc63325881
commit
7ef55a8615
3 changed files with 16 additions and 13 deletions
14
test/fixers/test_jq_fixer_callback.vader
Normal file
14
test/fixers/test_jq_fixer_callback.vader
Normal file
|
@ -0,0 +1,14 @@
|
|||
Before:
|
||||
Save g:ale_json_jq_executable
|
||||
Save g:ale_json_jq_options
|
||||
|
||||
After:
|
||||
Restore
|
||||
|
||||
Execute(The jq fixer should use the options you set):
|
||||
let g:ale_json_jq_executable = 'foo'
|
||||
let g:ale_json_jq_options = '--bar'
|
||||
|
||||
AssertEqual
|
||||
\ {'command': ale#Escape('foo') . ' . --bar'},
|
||||
\ ale#fixers#jq#Fix(bufnr(''))
|
Loading…
Add table
Add a link
Reference in a new issue