Add Tests to Cover #233

This commit is contained in:
Stefan Zweifel 2022-07-30 20:21:57 +02:00
parent 9262405709
commit dce7e85096

View File

@ -823,3 +823,19 @@ git_auto_commit() {
assert_success assert_success
} }
@test "detects and commits changed files based on pattern in root and subfolders" {
# Add some .neon files
touch "${FAKE_LOCAL_REPOSITORY}"/new-file-1.neon
mkdir foo;
touch "${FAKE_LOCAL_REPOSITORY}"/foo/new-file-2.neon
INPUT_FILE_PATTERN="**/*.neon *.neon"
run git_auto_commit
assert_success
assert_line --partial "new-file-1.neon"
assert_line --partial "foo/new-file-2.neon"
}