Skip the command#Run test for fixers on Windows

This commit is contained in:
w0rp
2019-02-26 16:57:57 +00:00
parent 38009b8e58
commit 37a1d24a36

View File

@@ -816,9 +816,14 @@ Execute(ALEFix should apply autocmds):
AssertEqual g:post_success, 1 AssertEqual g:post_success, 1
Execute(ALEFix should support ale#command#Run): Execute(ALEFix should support ale#command#Run):
let g:ale_fixers.testft = ['CatLineDeferred'] if has('win32')
ALEFix " Just skip this test on Windows, we can't run it.
call ale#test#FlushJobs() call setline(1, ['a', 'b', 'c', 'd'])
else
let g:ale_fixers.testft = ['CatLineDeferred']
ALEFix
call ale#test#FlushJobs()
endif
Expect(The extra line should be added): Expect(The extra line should be added):
a a