mirror of
https://github.com/actions/labeler.git
synced 2025-12-12 12:37:48 +00:00
Add test for when not all globs match any changed file
This commit is contained in:
@@ -50,6 +50,15 @@ describe('checkAnyChangedFiles', () => {
|
|||||||
expect(result).toBe(false);
|
expect(result).toBe(false);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('when all globs do match match any of the files that have changed', () => {
|
||||||
|
const globs = ['*.txt', '*.md'];
|
||||||
|
|
||||||
|
it('returns false', () => {
|
||||||
|
const result = checkAnyChangedFiles(changedFiles, globs);
|
||||||
|
expect(result).toBe(false);
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('toChangedFilesMatchConfig', () => {
|
describe('toChangedFilesMatchConfig', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user