diff --git a/__tests__/changedFiles.test.ts b/__tests__/changedFiles.test.ts index a72e115a..df1b9359 100644 --- a/__tests__/changedFiles.test.ts +++ b/__tests__/changedFiles.test.ts @@ -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', () => {