[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
1 changed files with 2 additions and 2 deletions

View File

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