From 9cfddd0144169fd6d2d8012e76a79faf1b497380 Mon Sep 17 00:00:00 2001 From: Josh Dales Date: Fri, 5 May 2023 09:05:40 -0400 Subject: [PATCH] Consolidate the new any change files test into the old one --- __tests__/changedFiles.test.ts | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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', () => {