summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCyrille David <cyrille@qonto.eu>2019-06-06 18:06:23 +0200
committerCyrille David <dcyriller@gmail.com>2019-06-06 22:04:32 +0200
commit3e4b8ea466efca0d05c9952b80f00f96f5dd0e4e (patch)
treeffe270612ac3ced8ef854615a495fa181e9ec702 /test
parent7b78f2b846e2f3443dcb2ceacee54eb99e37f040 (diff)
downloadale-3e4b8ea466efca0d05c9952b80f00f96f5dd0e4e.zip
prettier: Support experimental languages
Such as handlebars
Diffstat (limited to 'test')
-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 9be161ac..062ae8cf 100644
--- a/test/fixers/test_prettier_fixer_callback.vader
+++ b/test/fixers/test_prettier_fixer_callback.vader
@@ -280,6 +280,20 @@ Execute(Should set --parser based on first filetype of multiple filetypes):
\ . ' --stdin-filepath %s --stdin',
\ }
+Execute(Should set --parser for experimental language, Handlebars):
+ call ale#test#SetFilename('../prettier-test-files/testfile.hbs')
+
+ set filetype=html.handlebars
+
+ GivenCommandOutput ['1.6.0']
+ AssertFixer
+ \ {
+ \ 'command': ale#path#CdString(expand('%:p:h'))
+ \ . ale#Escape(g:ale_javascript_prettier_executable)
+ \ . ' --parser glimmer'
+ \ . ' --stdin-filepath %s --stdin',
+ \ }
+
Execute(The prettier_d post-processor should permit regular JavaScript content):
AssertEqual
\ [