fix fake git diff for testing changes
This commit is contained in:
parent
320adbd37b
commit
b504bbc96b
6
test.sh
6
test.sh
@ -63,11 +63,12 @@ git()
|
|||||||
"branch" )
|
"branch" )
|
||||||
echo "* fake_test";;
|
echo "* fake_test";;
|
||||||
"diff" )
|
"diff" )
|
||||||
echo "";;
|
echo "2 1 fake_file"
|
||||||
|
return 1;;
|
||||||
"status" )
|
"status" )
|
||||||
echo "# Untracked";;
|
echo "# Untracked";;
|
||||||
"rev-list" )
|
"rev-list" )
|
||||||
echo "111";;
|
echo 111;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -129,6 +130,7 @@ assert Proxy proxy
|
|||||||
assert Error 127
|
assert Error 127
|
||||||
# echo GIT
|
# echo GIT
|
||||||
assert "GIT Branch" fake_test
|
assert "GIT Branch" fake_test
|
||||||
|
assert "GIT Changes" "+2/-1"
|
||||||
assert "GIT Commits" 111
|
assert "GIT Commits" 111
|
||||||
assert "GIT Untrack" untracked
|
assert "GIT Untrack" untracked
|
||||||
assert "GIT Mark" gitmark
|
assert "GIT Mark" gitmark
|
||||||
|
Loading…
Reference in New Issue
Block a user