Rename postsPath to defaultPath, remove date requirement from postFilename

This commit is contained in:
2026-08-09 14:21:02 -04:00
parent 06350d6c62
commit 87d27f2f4c
5 changed files with 15 additions and 8 deletions

View File

@@ -29,4 +29,8 @@ describe("postFilename", () => {
test("joins date and slug", () => {
expect(postFilename({ date: "2026-06-19", slug: "hello" })).toBe("2026-06-19-hello.md");
});
test("renders correctly without date", () => {
expect(postFilename({ slug: "hello-without-date" })).toBe("hello-without-date.md");
});
});