mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2025-01-19 15:02:46 +08:00
test removal of funcrefs
This commit is contained in:
parent
fd68997398
commit
3b2b224a3b
|
@ -48,5 +48,12 @@ describe 'airline'
|
||||||
call airline#update_statusline()
|
call airline#update_statusline()
|
||||||
Expect &statusline =~ '%{airline#util#wrap(airline#parts#mode(),0)}%{airline#util#wrap(airline#parts#mode(),0)}'
|
Expect &statusline =~ '%{airline#util#wrap(airline#parts#mode(),0)}%{airline#util#wrap(airline#parts#mode(),0)}'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'should remove funcrefs properly'
|
||||||
|
let c = len(g:airline_statusline_funcrefs)
|
||||||
|
call airline#add_statusline_func('MyIgnoreFuncref')
|
||||||
|
call airline#remove_statusline_func('MyIgnoreFuncref')
|
||||||
|
Expect len(g:airline_statusline_funcrefs) == c
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user