From 6041eff66bfa4ba328da62f09d4bc3598b964504 Mon Sep 17 00:00:00 2001 From: Mario Campos Date: Mon, 14 Sep 2026 13:40:10 -0500 Subject: [PATCH] Update validate.test.mts test names to reflect new `isValidAllChangenoteFiles` The `isValidAllChangenoteFiles` now accepts a list of file paths rather than a file path string. --- pr-checks/changelog/validate.test.mts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pr-checks/changelog/validate.test.mts b/pr-checks/changelog/validate.test.mts index f6fb43680..a38339d1c 100644 --- a/pr-checks/changelog/validate.test.mts +++ b/pr-checks/changelog/validate.test.mts @@ -189,7 +189,7 @@ await describe("isValidChangenoteFile", async () => { }); await describe("isValidAllChangenoteFiles", async () => { - await it("accepts a directory of valid change-note files", async () => { + await it("accepts list of file paths of valid change-notes", async () => { await withTmpDir(async (tmpDir) => { const fileName1 = path.join(tmpDir, "2026-01-01-fix-bug.md"); const fileName2 = path.join(tmpDir, "2026-01-02-add-feature.md"); @@ -202,15 +202,15 @@ await describe("isValidAllChangenoteFiles", async () => { }); }); - await it("accepts an empty list", async () => { + await it("accepts the empty list", async () => { assert.equal(isValidAllChangenoteFiles([]), true); }); - await it("accepts a list of .gitkeep only", async () => { + await it("accepts list of .gitkeep", async () => { assert.equal(isValidAllChangenoteFiles([".gitkeep"]), true); }); - await it("rejects directory with an invalid change-note file", async () => { + await it("rejects list containing a file path to an invalid change-note", async () => { await withTmpDir(async (tmpDir) => { const fileName1 = path.join(tmpDir, "2026-01-01-fix-bug.md"); const fileName2 = path.join(tmpDir, "2026-01-02-wrong-category.md");