diff options
author | Cyrille David <cyrille@qonto.eu> | 2019-06-06 18:06:23 +0200 |
---|---|---|
committer | Cyrille David <dcyriller@gmail.com> | 2019-06-06 22:04:32 +0200 |
commit | 3e4b8ea466efca0d05c9952b80f00f96f5dd0e4e (patch) | |
tree | ffe270612ac3ced8ef854615a495fa181e9ec702 /test | |
parent | 7b78f2b846e2f3443dcb2ceacee54eb99e37f040 (diff) | |
download | ale-3e4b8ea466efca0d05c9952b80f00f96f5dd0e4e.zip |
prettier: Support experimental languages
Such as handlebars
Diffstat (limited to 'test')
-rw-r--r-- | test/fixers/test_prettier_fixer_callback.vader | 14 |
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 \ [ |