All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 call ale#assert#SetUpFixerTest('html', 'djlint', 'djlint')
7 call ale#assert#TearDownFixerTest()
9 Execute(The djlint callback should return the correct default command):
11 \ {'command': ale#Escape('djlint') . ' --reformat -'},
12 \ ale#fixers#djlint#Fix(bufnr(''))
14 Execute(The --profile option should not be overridden):
15 call ale#test#SetFilename('../test-files/djlint/testfile.html')
17 set filetype=htmldjango
18 let g:ale_html_djlint_options = '--profile jinja'
21 \ { 'command': ale#Escape(g:ale_html_djlint_executable)
23 \ . ' --profile jinja'
28 Execute(Should set --profile for experimental language, Handlebars):
29 call ale#test#SetFilename('../test-files/djlint/testfile.hbs')
31 set filetype=handlebars
34 \ { 'command': ale#Escape(g:ale_html_djlint_executable)
36 \ . ' --profile handlebars'
40 Execute(Should set --profile for htmldjango, Django templates):
41 call ale#test#SetFilename('../test-files/djlint/testfile.html')
43 set filetype=htmldjango
46 \ { 'command': ale#Escape(g:ale_html_djlint_executable)
48 \ . ' --profile django'
52 Execute(Should set --profile for htmlangular):
53 call ale#test#SetFilename('../test-files/djlint/testfile.html')
55 set filetype=htmlangular
58 \ { 'command': ale#Escape(g:ale_html_djlint_executable)
60 \ . ' --profile angular'
64 Execute(Should set --profile for jinja):
65 call ale#test#SetFilename('../test-files/djlint/testfile.jinja2')
70 \ { 'command': ale#Escape(g:ale_html_djlint_executable)
72 \ . ' --profile jinja'
76 Execute(Should set --profile for nunjucks):
77 call ale#test#SetFilename('../test-files/djlint/testfile.njk')
82 \ { 'command': ale#Escape(g:ale_html_djlint_executable)
84 \ . ' --profile nunjucks'
88 Execute(Should set --profile for Go HTML templates):
89 call ale#test#SetFilename('../test-files/djlint/testfile.html')
91 set filetype=gohtmltmpl
94 \ { 'command': ale#Escape(g:ale_html_djlint_executable)
96 \ . ' --profile golang'