summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGordon Fontenot <gmoney@gitpushgitpaid.com>2018-03-04 10:11:10 -0600
committerGordon Fontenot <gmoney@gitpushgitpaid.com>2018-03-08 09:19:12 -0600
commit9258c73680c7daa518a9a3bf2c4af6f5eb1b4b5e (patch)
treed1d1c23bf6e3ade24c7beb4a5e5b645d91c4ae4a /test
parentb7363bef7d8bdd553f10a6a168f4cd814616f6f9 (diff)
downloadale-9258c73680c7daa518a9a3bf2c4af6f5eb1b4b5e.zip
Fix elm-format fixer name
Support for elm-format as a fixer has existed since Sept 2017, but it's not easy to discover because the fixer was named `format`. This breaks the convention of the other fixers that use the full name in the registry. I've gone ahead and fixed this discrepancy, but I left the existing registry entry in place. We should move people towards using `elm-format` as the fixer name, but I'd hate to break existing setups.
Diffstat (limited to 'test')
-rw-r--r--test/fixers/test_elm_format_fixer_callback.vader10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/fixers/test_elm_format_fixer_callback.vader b/test/fixers/test_elm_format_fixer_callback.vader
index d613aa84..682c22ca 100644
--- a/test/fixers/test_elm_format_fixer_callback.vader
+++ b/test/fixers/test_elm_format_fixer_callback.vader
@@ -18,7 +18,7 @@ Execute(The elm-format command should have default params):
\ ale#Escape(ale#path#Simplify(g:dir . '/../elm-test-files/node_modules/.bin/elm-format'))
\ . ' %t --yes',
\ },
- \ ale#fixers#format#Fix(bufnr(''))
+ \ ale#fixers#elm_format#Fix(bufnr(''))
Execute(The elm-format command should manage use_global = 1 param):
call ale#test#SetFilename('../elm-test-files/src/subdir/testfile.elm')
@@ -31,7 +31,7 @@ Execute(The elm-format command should manage use_global = 1 param):
\ ale#Escape('elm-format')
\ . ' %t --yes',
\ },
- \ ale#fixers#format#Fix(bufnr(''))
+ \ ale#fixers#elm_format#Fix(bufnr(''))
Execute(The elm-format command should manage executable param):
call ale#test#SetFilename('../elm-test-files/src/subdir/testfile.elm')
@@ -45,7 +45,7 @@ Execute(The elm-format command should manage executable param):
\ ale#Escape('elmformat')
\ . ' %t --yes',
\ },
- \ ale#fixers#format#Fix(bufnr(''))
+ \ ale#fixers#elm_format#Fix(bufnr(''))
Execute(The elm-format command should manage empty options):
call ale#test#SetFilename('../elm-test-files/src/subdir/testfile.elm')
@@ -58,7 +58,7 @@ Execute(The elm-format command should manage empty options):
\ ale#Escape(ale#path#Simplify(g:dir . '/../elm-test-files/node_modules/.bin/elm-format'))
\ . ' %t',
\ },
- \ ale#fixers#format#Fix(bufnr(''))
+ \ ale#fixers#elm_format#Fix(bufnr(''))
Execute(The elm-format command should manage custom options):
call ale#test#SetFilename('../elm-test-files/src/subdir/testfile.elm')
@@ -71,4 +71,4 @@ Execute(The elm-format command should manage custom options):
\ ale#Escape(ale#path#Simplify(g:dir . '/../elm-test-files/node_modules/.bin/elm-format'))
\ . ' %t --param1 --param2',
\ },
- \ ale#fixers#format#Fix(bufnr(''))
+ \ ale#fixers#elm_format#Fix(bufnr(''))