Lint
This commit is contained in:
parent
1b21e194cf
commit
5c8b02f69c
1 changed files with 8 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue