diff options
author | Arash Mousavi <me@amousavi.dev> | 2024-04-17 15:58:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-17 23:58:28 +0900 |
commit | 7516e2e4849fb633555d5d40c2137e585ed10b64 (patch) | |
tree | 497048b39492215b29c17ce54e8b9397bb3bef83 /test/fixers/test_htmlbeautifier_fixer_callback.vader | |
parent | 6db58b33795430a6165f27c7f796c420c0e098e4 (diff) | |
download | ale-7516e2e4849fb633555d5d40c2137e585ed10b64.zip |
Add htmlbeautifier support (#4751)
Diffstat (limited to 'test/fixers/test_htmlbeautifier_fixer_callback.vader')
-rw-r--r-- | test/fixers/test_htmlbeautifier_fixer_callback.vader | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/fixers/test_htmlbeautifier_fixer_callback.vader b/test/fixers/test_htmlbeautifier_fixer_callback.vader new file mode 100644 index 00000000..e54bab97 --- /dev/null +++ b/test/fixers/test_htmlbeautifier_fixer_callback.vader @@ -0,0 +1,19 @@ +Before: + call ale#assert#SetUpFixerTest('eruby', 'htmlbeautifier') + +After: + call ale#assert#TearDownFixerTest() + +Execute(The htmlbeautifier callback should return the correct default values): + AssertFixer { + \ 'command': ale#Escape('htmlbeautifier') . ' %t', + \ 'read_temporary_file': 1, + \} + +Execute(The htmlbeautifier callback should allow custom htmlbeautifier executables): + let g:ale_eruby_htmlbeautifier_executable = 'foo/bar' + + AssertFixer { + \ 'command': ale#Escape('foo/bar') . ' %t', + \ 'read_temporary_file': 1, + \} |