1
0
mirror of https://github.com/actions/labeler synced 2026-05-12 05:11:14 +02:00

Fix recursive glob behavior in our npm format script command

This commit is contained in:
Patrick Ellis
2021-06-04 15:55:26 -04:00
parent 84a53dc124
commit a1aa618e7a
4 changed files with 27 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
import { checkGlobs } from '../src/labeler'
import { checkGlobs } from "../src/labeler";
import * as core from "@actions/core";
@@ -12,15 +12,15 @@ beforeAll(() => {
const matchConfig = [{ any: ["*.txt"] }];
describe('checkGlobs', () => {
it('returns true when our pattern does match changed files', () => {
describe("checkGlobs", () => {
it("returns true when our pattern does match changed files", () => {
const changedFiles = ["foo.txt", "bar.txt"];
const result = checkGlobs(changedFiles, matchConfig);
expect(result).toBeTruthy();
});
it('returns false when our pattern does not match changed files', () => {
it("returns false when our pattern does not match changed files", () => {
const changedFiles = ["foo.docx"];
const result = checkGlobs(changedFiles, matchConfig);