[add] test case for init.vim / When autochdir is enabled
This commit is contained in:
parent
07ab201a27
commit
ef5a0b53ef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue