Fix the tests harder
This commit is contained in:
parent
c2138a2656
commit
492260c967
2 changed files with 2 additions and 2 deletions
|
@ -43,6 +43,7 @@ function! ale#fix#ApplyQueuedFixes() abort
|
|||
if empty(&buftype)
|
||||
noautocmd :w!
|
||||
else
|
||||
call writefile(l:data.output, 'fix_test_file')
|
||||
set nomodified
|
||||
endif
|
||||
endif
|
||||
|
|
|
@ -239,7 +239,7 @@ Execute(ALEFix should save files on the save event):
|
|||
let g:ale_enabled = 1
|
||||
|
||||
noautocmd silent file fix_test_file
|
||||
noautocmd :w
|
||||
call writefile(getline(1, '$'), 'fix_test_file')
|
||||
|
||||
let g:ale_fixers.testft = ['AddDollars']
|
||||
|
||||
|
@ -247,7 +247,6 @@ Execute(ALEFix should save files on the save event):
|
|||
call ale#events#SaveEvent()
|
||||
|
||||
" We should save the file.
|
||||
Assert filereadable('fix_test_file'), 'The file cannot be read'
|
||||
AssertEqual ['$a', '$b', '$c'], readfile('fix_test_file')
|
||||
Assert !&modified, 'The was marked as ''modified'''
|
||||
|
||||
|
|
Reference in a new issue