This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/fixers/test_jq_fixer_callback.vader

15 lines
316 B
Text
Raw Normal View History

2018-01-28 11:51:20 +00:00
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(''))