Skip to content

Commit

Permalink
fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
fchastanet committed Dec 4, 2023
1 parent dc1e006 commit 2ca3ee2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/_binaries/Git/upgradeGithubRelease.bats
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ function Git::upgradeGithubRelease::noArg { #@test
function Git::upgradeGithubRelease::1Arg { #@test
run "${binDir}/upgradeGithubRelease" arg1 2>&1
assert_failure 1
assert_output --partial "ERROR - Command upgradeGithubRelease - Argument 'githubUrlPattern' should be provided at least 1 time(s)"
assert_output --partial "FATAL - File /bash/arg1 is not writable"
}

function Git::upgradeGithubRelease::githubArgInvalid { #@test
run "${binDir}/upgradeGithubRelease" arg1 arg2 2>&1
run "${binDir}/upgradeGithubRelease" /tmp/arg1 arg2 2>&1
assert_failure
assert_lines_count 1
assert_line --index 0 --partial "FATAL - Invalid githubUrlPattern arg2 provided, it should begin with https://github.com/"
Expand Down

0 comments on commit 2ca3ee2

Please sign in to comment.