install.fairie/dotfiles/.vim/plugged/vim-airline/test/commands.vimspec
Git E2E Dev Test Username 6892bd7dbd git subrepo clone https://github.com/vim-airline/vim-airline.git ./dotfiles/.vim/plugged/vim-airline
subrepo:
  subdir:   "dotfiles/.vim/plugged/vim-airline"
  merged:   "0ed7b8b"
upstream:
  origin:   "https://github.com/vim-airline/vim-airline.git"
  branch:   "master"
  commit:   "0ed7b8b"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:36:08 -04:00

50 lines
1.2 KiB
Text

Describe commands.vim
It should toggle off and on
execute 'AirlineToggle'
Assert False(exists('#airline'))
execute 'AirlineToggle'
Assert True(exists('#airline'))
End
It should toggle whitespace off
call airline#extensions#load()
execute 'AirlineToggleWhitespace'
Assert False(exists('#airline_whitespace'))
End
It should toggle whitespace on
call airline#extensions#load()
execute 'AirlineToggleWhitespace'
Assert True(exists('#airline_whitespace'))
End
It should display theme name "simple"
execute 'AirlineTheme simple'
Assert Equals(g:airline_theme, 'simple')
End
It should display theme name "dark"'
execute 'AirlineTheme dark'
Assert Equals(g:airline_theme, 'dark')
End
It should display theme name "dark" because specifying a name that does not exist
execute 'AirlineTheme doesnotexist'
Assert Equals(g:airline_theme, 'dark')
End
It should display theme name molokai
colors molokai
Assert Equals(g:airline_theme, 'molokai')
End
It should have a refresh command
Assert Equals(exists(':AirlineRefresh'), 2)
End
It should have a extensions command
Assert Equals(exists(':AirlineExtensions'), 2)
End
End