Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Apr 21, 2024
1 parent 0bc0ca7 commit 62dc7e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/util/string-match.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ describe('util/string-match', () => {
expect(matchRegexOrGlobList('test', ['/test2/'])).toBeFalse();
});

it('returns true if star', () => {
expect(matchRegexOrGlobList('&&&', ['*'])).toBeTrue();
});

it('returns true if any match', () => {
expect(matchRegexOrGlobList('test', ['test', '/test2/'])).toBeTrue();
});
Expand Down

0 comments on commit 62dc7e9

Please sign in to comment.