diff options
author | w0rp <devw0rp@gmail.com> | 2019-10-28 13:45:25 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-10-28 13:45:25 +0000 |
commit | 9a0b604a992730889bcac660db8710f336505262 (patch) | |
tree | 5e3ea9987011f82936016923c966c294255b6b9a /test/fixers/test_html_beautify_fixer_callback.vader | |
parent | 47eb3dd0c0bde414e76a36f270f9c59ce257559b (diff) | |
download | ale-9a0b604a992730889bcac660db8710f336505262.zip |
Fix the test issues with html-beautify
Diffstat (limited to 'test/fixers/test_html_beautify_fixer_callback.vader')
-rw-r--r-- | test/fixers/test_html_beautify_fixer_callback.vader | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/test/fixers/test_html_beautify_fixer_callback.vader b/test/fixers/test_html_beautify_fixer_callback.vader index dacd1cb2..05e10a36 100644 --- a/test/fixers/test_html_beautify_fixer_callback.vader +++ b/test/fixers/test_html_beautify_fixer_callback.vader @@ -1,31 +1,16 @@ Before: - Save g:ale_html_beautify_executable - Save g:ale_html_beautify_options - - let g:ale_html_beautify_options = '' + call ale#assert#SetUpFixerTest('html', 'html-beautify', 'beautify') call ale#test#SetDirectory('/testplugin/test/fixers') silent cd .. silent cd command_callback - let g:dir = getcwd() After: Restore - unlet! b:bin_dir - - call ale#test#RestoreDirectory() - -Execute(The html-beautify callback should return 0 if html-beautify not found): - let g:ale_html_beautify_executable = 'xxxinvalidpath' - AssertEqual - \ 0, - \ ale#fixers#html_beautify#Fix(bufnr('')) + call ale#assert#TearDownFixerTest() Execute(The html-beautify callback should return the correct default command): AssertEqual - \ { - \ 'command': ale#Escape('html_beautify_paths/html-beautify') - \ . ' -' - \ }, + \ {'command': '''html-beautify'' -'}, \ ale#fixers#html_beautify#Fix(bufnr('')) |