This commit is contained in:
Andras Schmelczer 2025-05-24 19:02:50 +01:00
commit 5c8b02f69c
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -3,7 +3,7 @@ import { globsToRegexes } from "./globs-to-regexes";
describe("globsToRegexes", () => {
it("basicExample", async () => {
const regex = globsToRegexes([".git/**"], new Logger())[0];
const [regex] = globsToRegexes([".git/**"], new Logger());
expect(regex.test(".git/objects/object")).toBeTruthy();
expect(regex.test(".git/objects/.object")).toBeTruthy();