mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 20:24:27 +08:00
test: add branch extensions test
This commit is contained in:
17
test/extensions_branch.vimspec
Normal file
17
test/extensions_branch.vimspec
Normal file
@@ -0,0 +1,17 @@
|
||||
Describe branch.vim
|
||||
Before
|
||||
call mkdir("branch-test")
|
||||
:lcd branch-test
|
||||
!git init
|
||||
End
|
||||
|
||||
It Match branch name main
|
||||
Assert Match(airline#extensions#branch#get_head(), "main")
|
||||
End
|
||||
|
||||
After
|
||||
call delete("branch-test", "rf")
|
||||
:lcd ..
|
||||
End
|
||||
End
|
||||
|
||||
Reference in New Issue
Block a user