Consolidate the new any change files test into the old one

This commit is contained in:
Josh Dales
2023-05-05 09:05:40 -04:00
parent 3aa0d436e5
commit 9cfddd0144

View File

@@ -33,8 +33,8 @@ describe('checkAllChangedFiles', () => {
describe('checkAnyChangedFiles', () => {
const changedFiles = ['foo.txt', 'bar.txt'];
describe('when the globs match any of the files that have changed', () => {
const globs = ['foo.txt'];
describe('when any glob matches any of the files that have changed', () => {
const globs = ['*.txt', '*.md'];
it('returns true', () => {
const result = checkAnyChangedFiles(changedFiles, globs);
@@ -50,15 +50,6 @@ describe('checkAnyChangedFiles', () => {
expect(result).toBe(false);
});
});
describe('when any glob matches any of the files that have changed', () => {
const globs = ['*.txt', '*.md'];
it('returns true', () => {
const result = checkAnyChangedFiles(changedFiles, globs);
expect(result).toBe(true);
});
});
});
describe('toChangedFilesMatchConfig', () => {