Skip to content

Commit 0184140

Browse files
committed
test: improve fail output
1 parent cf4b1d6 commit 0184140

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/git-open.test.zsh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ assert_value() {
1414
echo "$(tput setaf 1)"
1515
echo "Expected: $expected"
1616
echo "Actual: $actual$(tput sgr0)"
17+
echo "Debug Info:"
18+
git_open _debug
1719
exit 1
1820
fi
1921

@@ -28,7 +30,7 @@ describe() {
2830

2931

3032
describe "git_open_project"
31-
assert_value "https://github.com/chenasraf/git-open" $(git_open_project)
33+
assert_value "https:/i/github.com/chenasraf/git-open" $(git_open_project)
3234

3335
describe "git_get_remote"
3436
assert_value "git@github.com:chenasraf/git-open.git" $(git_get_remote)

0 commit comments

Comments
 (0)