Skip to content

Commit

Permalink
Add test for when not all globs match any changed file
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdales committed Apr 13, 2023
1 parent d4d4a10 commit 2637d23
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions __tests__/changedFiles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ describe('checkAnyChangedFiles', () => {
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', () => {
Expand Down

0 comments on commit 2637d23

Please sign in to comment.