summaryrefslogtreecommitdiff
path: root/test/fixers
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-01-28 11:51:20 +0000
committerw0rp <devw0rp@gmail.com>2018-01-28 11:51:20 +0000
commit7ef55a86152c3e17e13702f0d9753d7fc9c4d256 (patch)
tree423e2a2e24812032f2685335adcaa9c0d09b01d8 /test/fixers
parentbc633258816049af921c445e62cea07c061301dc (diff)
downloadale-7ef55a86152c3e17e13702f0d9753d7fc9c4d256.zip
#1303 jq isn't a Node program
Diffstat (limited to 'test/fixers')
-rw-r--r--test/fixers/test_jq_fixer_callback.vader14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/fixers/test_jq_fixer_callback.vader b/test/fixers/test_jq_fixer_callback.vader
new file mode 100644
index 00000000..2e32bf8e
--- /dev/null
+++ b/test/fixers/test_jq_fixer_callback.vader
@@ -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(''))