ale/test/test_quitting_variable.vader
2017-10-14 23:22:13 +01:00

23 lines
397 B
Plaintext

Before:
Save g:ale_enabled
unlet! b:ale_quitting
let g:ale_enabled = 0
After:
Restore
unlet! b:ale_quitting
Execute(QuitEvent should set b:ale_quitting to 1):
call ale#events#QuitEvent(bufnr(''))
AssertEqual 1, b:ale_quitting
Execute(EnterEvent should set b:ale_quitting to 0):
let b:ale_quitting = 1
call ale#events#EnterEvent(bufnr(''))
AssertEqual 0, b:ale_quitting