mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-14 00:50:08 +00:00
Merge pull request #221 from dritter/fix_vcs_test
Fix VCS Travis Test for git version
This commit is contained in:
commit
b81084100f
1 changed files with 5 additions and 1 deletions
|
@ -40,10 +40,14 @@ function testColorOverridingForModifiedStateWorks() {
|
||||||
mkdir -p $FOLDER
|
mkdir -p $FOLDER
|
||||||
cd $FOLDER
|
cd $FOLDER
|
||||||
git init 1>/dev/null
|
git init 1>/dev/null
|
||||||
|
git config user.email "test@powerlevel9k.theme"
|
||||||
|
git config user.name "Testing Tester"
|
||||||
touch testfile
|
touch testfile
|
||||||
git add testfile
|
git add testfile
|
||||||
|
git commit -m "test" 1>/dev/null
|
||||||
|
echo "test" > testfile
|
||||||
|
|
||||||
assertEquals "%K{yellow} %F{red} master ✚ %k%F{yellow}%f " "$(build_left_prompt)"
|
assertEquals "%K{yellow} %F{red} master ● %k%F{yellow}%f " "$(build_left_prompt)"
|
||||||
|
|
||||||
cd -
|
cd -
|
||||||
rm -fr /tmp/powerlevel9k-test
|
rm -fr /tmp/powerlevel9k-test
|
||||||
|
|
Loading…
Reference in a new issue