From 62dc7e9983ff5837a756146b4cf6c1101be6820f Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Sun, 21 Apr 2024 12:39:18 +0200 Subject: [PATCH] add test --- lib/util/string-match.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/util/string-match.spec.ts b/lib/util/string-match.spec.ts index 0321d4ce5720d6..e76d200d7b03f5 100644 --- a/lib/util/string-match.spec.ts +++ b/lib/util/string-match.spec.ts @@ -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(); });