[fix] Fix meaningless tests.

This commit is contained in:
kazukazuinaina 2021-12-18 15:37:11 +09:00 committed by Christian Brabandt
parent 9a3568b815
commit 64908db62a
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -69,14 +69,14 @@ describe 'airline'
it 'should collapse the inactive split if the variable is set true'
let g:airline_inactive_collapse = 1
wincmd s
Expect getwinvar(2, '&statusline') !~ 'airline#parts#mode'
Expect airline#statusline(2) !~ 'airline#parts#mode'
wincmd c
end
it 'should not collapse the inactive split if the variable is set false'
let g:airline_inactive_collapse = 0
wincmd s
Expect getwinvar(2, '&statusline') != 'airline#parts#mode'
Expect airline#statusline(2) =~ 'airline#parts#mode'
wincmd c
end