[add] test case for init.vim / When autochdir is enabled

This commit is contained in:
kazukazuinaina 2021-04-27 02:56:54 +09:00
parent 07ab201a27
commit ef5a0b53ef
1 changed files with 7 additions and 0 deletions

View File

@ -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