From ef5a0b53ef6b4442087cd453d3e2893bbce96cc8 Mon Sep 17 00:00:00 2001 From: kazukazuinaina Date: Tue, 27 Apr 2021 02:56:54 +0900 Subject: [PATCH] [add] test case for init.vim / When autochdir is enabled --- t/init.vim | 7 +++++++ 1 file changed, 7 insertions(+) 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