test(landing): account for the 0.2.1 release post in blog fixtures (#211)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b83f03f451
commit
a78901d70e
1 file changed
+2
-1
@@ -96,7 +96,7 @@ describe("frontmatter mapping (author / pinned / category)", () => {
|
|||||||
it("reads the pinned flag and sorts the pinned post first", () => {
|
it("reads the pinned flag and sorts the pinned post first", () => {
|
||||||
for (const locale of ["en", "zh"] as const) {
|
for (const locale of ["en", "zh"] as const) {
|
||||||
const posts = postsFor(locale);
|
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.
|
// 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([
|
expect(posts.filter((p) => p.pinned).map((p) => p.slug)).toEqual([
|
||||||
"introducing-penguinharness",
|
"introducing-penguinharness",
|
||||||
@@ -120,6 +120,7 @@ describe("frontmatter mapping (author / pinned / category)", () => {
|
|||||||
it("filters by the news category, newest first", () => {
|
it("filters by the news category, newest first", () => {
|
||||||
expect(postsFor("en", "news").map((p) => p.slug)).toEqual([
|
expect(postsFor("en", "news").map((p) => p.slug)).toEqual([
|
||||||
"introducing-penguinharness",
|
"introducing-penguinharness",
|
||||||
|
"penguinharness-0-2-1",
|
||||||
"penguinharness-0-2-0",
|
"penguinharness-0-2-0",
|
||||||
"penguinharness-0-1-5",
|
"penguinharness-0-1-5",
|
||||||
"penguinharness-0-1-4",
|
"penguinharness-0-1-4",
|
||||||
|
|||||||
Reference in new issue
Block a user