summaryrefslogtreecommitdiff
path: root/test/fixers
diff options
context:
space:
mode:
authorZack Kourouma <zack@secondspectrum.com>2017-10-20 18:29:57 -0700
committerZack Kourouma <zack@secondspectrum.com>2017-10-20 18:29:57 -0700
commite023e7a2fe698cb36921c8e47f48e6a072c1b0a6 (patch)
treedc44022da6e097958ac7b6f9e1fd6adbc2f33349 /test/fixers
parent346c91fb6bd455cf0c4dfbf1abe016d6032d59f5 (diff)
downloadale-e023e7a2fe698cb36921c8e47f48e6a072c1b0a6.zip
add prettier fixer support for 'less' filetype
Diffstat (limited to 'test/fixers')
-rw-r--r--test/fixers/test_prettier_fixer_callback.vader14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/fixers/test_prettier_fixer_callback.vader b/test/fixers/test_prettier_fixer_callback.vader
index cc7d34d0..471a8632 100644
--- a/test/fixers/test_prettier_fixer_callback.vader
+++ b/test/fixers/test_prettier_fixer_callback.vader
@@ -114,3 +114,17 @@ Execute(Append '--parser postcss' for filetype=css):
\ . ' --write',
\ },
\ ale#fixers#prettier#Fix(bufnr(''))
+
+Execute(Append '--parser postcss' for filetype=less):
+ set filetype=less
+ call ale#test#SetFilename('../prettier-test-files/testfile.less')
+
+ AssertEqual
+ \ {
+ \ 'read_temporary_file': 1,
+ \ 'command': ale#Escape(g:ale_javascript_prettier_executable)
+ \ . ' %t'
+ \ . ' --parser postcss'
+ \ . ' --write',
+ \ },
+ \ ale#fixers#prettier#Fix(bufnr(''))