Yes, try again to fix Windows tests

This commit is contained in:
w0rp 2020-08-23 20:19:22 +01:00
parent d4583f1a63
commit 33eb03ea71
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
1 changed files with 2 additions and 5 deletions

View File

@ -229,11 +229,8 @@ Execute(Should apply filename mpapings):
let g:ale_fixers.testft = ['echo_filename']
ALEFix
call ale#test#FlushJobs()
if has('win32')
" We have to correct the output on Windows.
call setline(1, substitute(getline(1), '\r', '', ''))
endif
" Remote trailing whitespace from the line.
call setline(1, substitute(getline(1), '[ \r]\+$', '', ''))
Expect(The mapped filename should be printed):
/some/fake/path/test.txt