ale/test/test_alelint_autocmd.vader

25 lines
433 B
Plaintext
Raw Normal View History

2016-10-13 10:06:03 -04:00
Before:
let g:success = 0
2017-06-06 04:54:17 -04:00
let g:ale_run_synchronously = 1
2016-10-13 10:06:03 -04:00
augroup VaderTest
autocmd!
autocmd User ALELint let g:success = 1
augroup end
After:
2017-06-06 04:54:17 -04:00
let g:ale_run_synchronously = 0
2016-10-13 10:06:03 -04:00
augroup! VaderTest
let g:ale_buffer_info = {}
2016-10-13 10:06:03 -04:00
Given vim (Some vimscript):
2016-10-13 10:06:03 -04:00
set nocompatible
Execute (Lint it):
2016-10-13 10:06:03 -04:00
call ale#Lint()
call ale#engine#WaitForJobs(2000)
Then (Autocommands should have run):
2016-10-13 10:06:03 -04:00
AssertEqual g:success, 1