mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-04-08 19:35:31 +02:00
test: add branch extensions test
This commit is contained in:
parent
423fe9e2ac
commit
45b6334faf
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user