We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19c7b84 commit c4b132eCopy full SHA for c4b132e
1 file changed
tests/git-auto-commit.bats
@@ -186,7 +186,10 @@ git_auto_commit() {
186
}
187
188
@test "It applies INPUT_FILE_PATTERN when creating commit" {
189
- INPUT_FILE_PATTERN="*.txt *.html"
+ INPUT_FILE_PATTERN="src/*.js *.txt *.html"
190
+
191
+ mkdir src;
192
+ touch src/new-file-{1,2}.js;
193
194
touch "${FAKE_LOCAL_REPOSITORY}"/new-file-{1,2}.php
195
touch "${FAKE_LOCAL_REPOSITORY}"/new-file-{1,2}.html
@@ -195,7 +198,7 @@ git_auto_commit() {
198
196
199
assert_success
197
200
- assert_line "INPUT_FILE_PATTERN: *.txt *.html"
201
+ assert_line "INPUT_FILE_PATTERN: src/*.js *.txt *.html"
202
assert_line "::debug::Push commit to remote branch master"
203
204
# Assert that PHP files have not been added.
0 commit comments