Skip to content

Commit

Permalink
Remove unwanted chars from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanzweifel committed Sep 10, 2021
1 parent 216b25a commit 54cc218
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/git-auto-commit.bats
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ setup() {
export INPUT_SKIP_FETCH=false
export INPUT_DISABLE_GLOBBING=false

# Configure Git
# Configure Git
if [[ -z $(git config user.name) ]]; then
git config --global user.name "Test Suite"
git config --global user.email "[email protected]"
Expand All @@ -43,7 +43,7 @@ teardown() {
rm -rf "${FAKE_TEMP_LOCAL_REPOSITORY}"
}

# Create a fake remote repository which tests can push against
# Create a fake remote repository which tests can push against
_setup_fake_remote_repository() {
# Create the bare repository, which will act as our remote/origin
rm -rf "${FAKE_REMOTE}";
Expand Down Expand Up @@ -72,7 +72,7 @@ _setup_local_repository() {
cd "${FAKE_LOCAL_REPOSITORY}";
}

# Run the main code related to this GitHub Action
# Run the main code related to this GitHub Action
git_auto_commit() {
bash "${BATS_TEST_DIRNAME}"/../entrypoint.sh
}
Expand Down Expand Up @@ -306,7 +306,7 @@ git_auto_commit() {
}

@test "It can checkout a different branch" {
# Create foo-branch and then immediately switch back to master
# Create foo-branch and then immediately switch back to master
git checkout -b foo
git checkout master

Expand All @@ -321,7 +321,7 @@ git_auto_commit() {
assert_line "INPUT_BRANCH value: foo"
assert_line "::debug::Push commit to remote branch foo"

# Assert a new branch "foo" exists on remote
# Assert a new branch "foo" exists on remote
run git ls-remote --heads
assert_output --partial refs/heads/foo
}
Expand Down Expand Up @@ -411,7 +411,7 @@ git_auto_commit() {
}

@test "It pushes generated commit and tag to remote branch and updates commit sha" {
# Create "a-new-branch"-branch and then immediately switch back to master
# Create "a-new-branch"-branch and then immediately switch back to master
git checkout -b a-new-branch
git checkout master

Expand Down Expand Up @@ -451,7 +451,7 @@ git_auto_commit() {
mkdir "${FAKE_LOCAL_REPOSITORY}"/nested
touch "${FAKE_LOCAL_REPOSITORY}"/nested/new-file-b.py

# Commit changes
# Commit changes
echo "Commit changes before running git_auto_commit";
cd "${FAKE_LOCAL_REPOSITORY}";
git add . > /dev/null;
Expand Down

0 comments on commit 54cc218

Please sign in to comment.