tests: add some more tests for g:airline_section vars

closes #2370
This commit is contained in:
kazukazuinaina 2021-05-03 08:31:25 +02:00 committed by Christian Brabandt
parent 76c24d2126
commit 76e42284e9
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 9 additions and 0 deletions

View File

@ -55,6 +55,15 @@ describe 'init sections'
Expect g:airline_section_z =~ '%v'
end
it 'section gutter should be blank unless csv extension is installed'
" Note: the csv extension uses only the window local variable
Expect g:airline_section_gutter =~ '%='
end
it 'section warning should be blank'
Expect g:airline_section_warning =~ ''
end
it 'should not redefine sections already defined'
for s in s:sections
let g:airline_section_{s} = s