release: 0.2.0 (#168)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2e8389f438
commit
4d5d55d15a
27 files changed
+171
-15
No files matched your search
@@ -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(13);
|
||||
expect(posts.length).toBe(14);
|
||||
// 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-0",
|
||||
"penguinharness-0-1-5",
|
||||
"penguinharness-0-1-4",
|
||||
"free-models-in-penguin-harness",
|
||||
|
||||
Reference in new issue
Block a user