diff options
author | w0rp <devw0rp@gmail.com> | 2019-11-14 14:50:16 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-11-14 14:50:21 +0000 |
commit | 9005a62dc2080327a0f2164d765f837e90e963dc (patch) | |
tree | 21b3704d4987e50a2e43958ff53a79e05cf8b4f3 /test/fixers/test_nimpretty_fixer_callback.vader | |
parent | 7665559d0e6102c9eccf39a119afd9c7a1a0af82 (diff) | |
download | ale-9005a62dc2080327a0f2164d765f837e90e963dc.zip |
Clean up the nimpretty code
Diffstat (limited to 'test/fixers/test_nimpretty_fixer_callback.vader')
-rw-r--r-- | test/fixers/test_nimpretty_fixer_callback.vader | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test/fixers/test_nimpretty_fixer_callback.vader b/test/fixers/test_nimpretty_fixer_callback.vader index b05139f0..a26f649a 100644 --- a/test/fixers/test_nimpretty_fixer_callback.vader +++ b/test/fixers/test_nimpretty_fixer_callback.vader @@ -2,15 +2,13 @@ Before: call ale#assert#SetUpFixerTest('nim', 'nimpretty') After: - call ale#test#RestoreDirectory() + call ale#assert#TearDownFixerTest() Execute(The nimpretty callback should return the correct default values): - AssertEqual \ { \ 'read_temporary_file': 1, - \ 'command': ale#Escape(g:ale_nim_nimpretty_executable) - \ . ' %t --maxLineLen:80' + \ 'command': ale#Escape('nimpretty') . ' %t --maxLineLen:80' \ }, \ ale#fixers#nimpretty#Fix(bufnr('')) @@ -20,8 +18,6 @@ Execute(The nimpretty callback should include any additional options): AssertEqual \ { \ 'read_temporary_file': 1, - \ 'command': ale#Escape(g:ale_nim_nimpretty_executable) - \ . ' %t' - \ . ' --some-option', + \ 'command': ale#Escape('nimpretty') . ' %t --some-option' \ }, \ ale#fixers#nimpretty#Fix(bufnr('')) |