Skip to content

Commit 6041eff

Browse files
committed
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.
1 parent f45ef9d commit 6041eff

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pr-checks/changelog/validate.test.mts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ await describe("isValidChangenoteFile", async () => {
189189
});
190190

191191
await describe("isValidAllChangenoteFiles", async () => {
192-
await it("accepts a directory of valid change-note files", async () => {
192+
await it("accepts list of file paths of valid change-notes", async () => {
193193
await withTmpDir(async (tmpDir) => {
194194
const fileName1 = path.join(tmpDir, "2026-01-01-fix-bug.md");
195195
const fileName2 = path.join(tmpDir, "2026-01-02-add-feature.md");
@@ -202,15 +202,15 @@ await describe("isValidAllChangenoteFiles", async () => {
202202
});
203203
});
204204

205-
await it("accepts an empty list", async () => {
205+
await it("accepts the empty list", async () => {
206206
assert.equal(isValidAllChangenoteFiles([]), true);
207207
});
208208

209-
await it("accepts a list of .gitkeep only", async () => {
209+
await it("accepts list of .gitkeep", async () => {
210210
assert.equal(isValidAllChangenoteFiles([".gitkeep"]), true);
211211
});
212212

213-
await it("rejects directory with an invalid change-note file", async () => {
213+
await it("rejects list containing a file path to an invalid change-note", async () => {
214214
await withTmpDir(async (tmpDir) => {
215215
const fileName1 = path.join(tmpDir, "2026-01-01-fix-bug.md");
216216
const fileName2 = path.join(tmpDir, "2026-01-02-wrong-category.md");

0 commit comments

Comments
 (0)