summaryrefslogtreecommitdiff
path: root/test/fixers/test_jq_fixer_callback.vader
blob: 2e32bf8e6bf9d72127d9c858b58f371ee0fed57b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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(''))