From 258f3e5630c375d0c6fd5c3bfcf7b1434ddb9b4b Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 20 Jun 2017 22:38:56 +0200 Subject: [PATCH] fix failing test by defining all default sections previous commit 2e3055541e88676a3 broke the unit tests, since it renamed the syntastic section. Fix that and also test correctly the other sections, that have been added (and which have not been tested until now). --- t/init.vim | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/t/init.vim b/t/init.vim index acb9f194..da795d40 100644 --- a/t/init.vim +++ b/t/init.vim @@ -59,12 +59,21 @@ describe 'init sections' end it 'all default statusline extensions should be blank' + Expect airline#parts#get('ale_error_count').raw == '' + Expect airline#parts#get('ale_warning_count').raw == '' Expect airline#parts#get('hunks').raw == '' Expect airline#parts#get('branch').raw == '' - Expect airline#parts#get('tagbar').raw == '' - Expect airline#parts#get('syntastic').raw == '' Expect airline#parts#get('eclim').raw == '' + Expect airline#parts#get('neomake_error_count').raw == '' + Expect airline#parts#get('neomake_warning_count').raw == '' + Expect airline#parts#get('obsession').raw == '' + Expect airline#parts#get('syntastic-err').raw == '' + Expect airline#parts#get('syntastic-warn').raw == '' + Expect airline#parts#get('tagbar').raw == '' Expect airline#parts#get('whitespace').raw == '' + Expect airline#parts#get('windowswap').raw == '' + Expect airline#parts#get('ycm_error_count').raw == '' + Expect airline#parts#get('ycm_warning_count').raw == '' end end