I broke up with neovim....vim is my best friend now

This commit is contained in:
LinlyBoi
2023-04-30 08:14:07 +03:00
parent 0d185449c5
commit 4a4a6b1e81
5245 changed files with 468325 additions and 25 deletions

View File

@@ -0,0 +1,50 @@
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