Skip to content

Commit

Permalink
Consolidate the new any change files test into the old one
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdales committed May 5, 2023
1 parent 3aa0d43 commit 9cfddd0
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions __tests__/changedFiles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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', () => {
Expand Down

0 comments on commit 9cfddd0

Please sign in to comment.