mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-07 04:34:26 +08:00
Compare commits
2 Commits
0c28f081a3
...
add-branch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f083d765d8 | ||
|
|
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 Equals(airline#extensions#branch#get_head(), "main")
|
||||||
|
End
|
||||||
|
|
||||||
|
After
|
||||||
|
call delete("branch-test", "rf")
|
||||||
|
:lcd ..
|
||||||
|
End
|
||||||
|
End
|
||||||
|
|
||||||
Reference in New Issue
Block a user