Skip to content

Commit

Permalink
Update Test
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanzweifel committed Mar 28, 2023
1 parent 3a446b7 commit 0b5f8a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/git-auto-commit.bats
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ cat_github_output() {
}

@test "It applies commit user and author settings" {
INPUT_COMMIT_USER_NAME="A Single Test"
INPUT_COMMIT_USER_NAME="Custom User Name"
INPUT_COMMIT_USER_EMAIL="single-test@github.com"
INPUT_COMMIT_AUTHOR="A Single Test <single@users.noreply.github.com>"

Expand All @@ -269,7 +269,7 @@ cat_github_output() {

assert_success

assert_line "INPUT_COMMIT_USER_NAME: A Single Test"
assert_line "INPUT_COMMIT_USER_NAME: Custom User Name"
assert_line "INPUT_COMMIT_USER_EMAIL: single-test@github.com"
assert_line "INPUT_COMMIT_AUTHOR: A Single Test <single@users.noreply.github.com>"
assert_line "::debug::Push commit to remote branch ${FAKE_DEFAULT_BRANCH}"
Expand All @@ -282,7 +282,7 @@ cat_github_output() {
assert_output --partial "A Single Test"

run git log -1 --pretty=format:'%cn'
assert_output --partial "A Single Test"
assert_output --partial "Custom User Name"

run git log -1 --pretty=format:'%ce'
assert_output --partial "single-test@github.com"
Expand Down

0 comments on commit 0b5f8a5

Please sign in to comment.