Skip to content

Commit 9acb933

Browse files
author
Renato Ribeiro
committed
add number to Post type
1 parent c233ca8 commit 9acb933

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

e2e/getPost.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ describe("getPost", () => {
99
test("get post by slug", async () => {
1010
const result = await blog.getPost({ query: { slug: "first-post" } });
1111

12+
expect(result.post?.number).toBe(1);
1213
expect(result.post?.title).toBe("First post");
1314
expect(result.post?.frontmatter).toStrictEqual({ meta: "data" });
1415
expect(result.post?.body).toBe("\r\nHi");

0 commit comments

Comments
 (0)