summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavíð Guðni <davidh@tempo.io>2018-08-23 17:17:00 +0000
committerDavíð Guðni <davidh@tempo.io>2018-08-24 09:04:17 +0000
commitf526fc68d11788bd45d1c78112168b855e923c04 (patch)
tree24d024d44af333418441c7500de69c7cd5302022 /test
parenta366d325a7c69fa20a3ab69ff8359bcd37d1487a (diff)
downloadale-f526fc68d11788bd45d1c78112168b855e923c04.zip
importjs fixer not reading correct executable variable name
Diffstat (limited to 'test')
-rw-r--r--test/fixers/test_importjs_fixer_callback.vader8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/fixers/test_importjs_fixer_callback.vader b/test/fixers/test_importjs_fixer_callback.vader
index c3e57f8b..53b87c2e 100644
--- a/test/fixers/test_importjs_fixer_callback.vader
+++ b/test/fixers/test_importjs_fixer_callback.vader
@@ -1,8 +1,8 @@
Before:
- Save g:ale_js_importjs_executable
+ Save g:ale_javascript_importjs_executable
" Use an invalid global executable, so we don't match it.
- let g:ale_js_importjs_executable = 'xxxinvalid'
+ let g:ale_javascript_importjs_executable = 'xxxinvalid'
call ale#test#SetDirectory('/testplugin/test/fixers')
call ale#test#SetFilename('../javascript_files/test.js')
@@ -18,12 +18,12 @@ Execute(The importjs callback should return 0 when the executable isn't executab
\ ale#fixers#importjs#Fix(bufnr(''))
Execute(The importjs callback should run the command when the executable test passes):
- let g:ale_js_importjs_executable = has('win32') ? 'cmd' : 'echo'
+ let g:ale_javascript_importjs_executable = has('win32') ? 'cmd' : 'echo'
AssertEqual
\ {
\ 'process_with': 'ale#fixers#importjs#ProcessOutput',
- \ 'command': ale#Escape(g:ale_js_importjs_executable) . ' fix %s'
+ \ 'command': ale#Escape(g:ale_javascript_importjs_executable) . ' fix %s'
\ },
\ ale#fixers#importjs#Fix(bufnr(''))