From a78901d70e4b09e1f9072290b15fe489942ce8f9 Mon Sep 17 00:00:00 2001 From: Yaowei Zheng Date: Wed, 5 Aug 2026 12:00:43 +0800 Subject: [PATCH] test(landing): account for the 0.2.1 release post in blog fixtures (#211) Co-authored-by: Claude Fable 5 --- packages/landing/test/blog.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/landing/test/blog.test.ts b/packages/landing/test/blog.test.ts index 047934c..c99e642 100644 --- a/packages/landing/test/blog.test.ts +++ b/packages/landing/test/blog.test.ts @@ -96,7 +96,7 @@ describe("frontmatter mapping (author / pinned / category)", () => { it("reads the pinned flag and sorts the pinned post first", () => { for (const locale of ["en", "zh"] as const) { const posts = postsFor(locale); - expect(posts.length).toBe(14); + expect(posts.length).toBe(15); // The launch post stays the single pinned post; newer posts sort under it by date. expect(posts.filter((p) => p.pinned).map((p) => p.slug)).toEqual([ "introducing-penguinharness", @@ -120,6 +120,7 @@ describe("frontmatter mapping (author / pinned / category)", () => { it("filters by the news category, newest first", () => { expect(postsFor("en", "news").map((p) => p.slug)).toEqual([ "introducing-penguinharness", + "penguinharness-0-2-1", "penguinharness-0-2-0", "penguinharness-0-1-5", "penguinharness-0-1-4",