diff --git a/t/init.vim b/t/init.vim index 48e6b05d..14389eec 100644 --- a/t/init.vim +++ b/t/init.vim @@ -33,6 +33,13 @@ describe 'init sections' Expect g:airline_section_c == '%<%f%m %#__accent_red#%{airline#util#wrap(airline#parts#readonly(),0)}%#__restore__#%#__accent_bold#%#__restore__#%#__accent_bold#%#__restore__#' end + it 'section c should be path and coc_status' + set autochdir + call s:clear() + call airline#init#sections() + Expect g:airline_section_c == '%<%F%m %#__accent_red#%{airline#util#wrap(airline#parts#readonly(),0)}%#__restore__#%#__accent_bold#%#__restore__#%#__accent_bold#%#__restore__#' + end + it 'section x should be filetype' Expect g:airline_section_x == '%#__accent_bold#%#__restore__#%{airline#util#prepend("",0)}%{airline#util#prepend("",0)}%{airline#util#prepend("",0)}%{airline#util#prepend("",0)}%{airline#util#prepend("",0)}%{airline#util#wrap(airline#parts#filetype(),0)}' end