From 9f75ff1d2d5ebf34c040474e836e125f80253365 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Tue, 28 Jan 2020 11:55:03 +0100 Subject: Add Post class --- test/getPost.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/getPost.spec.ts b/test/getPost.spec.ts index 6a5e4e0..72d7b5e 100644 --- a/test/getPost.spec.ts +++ b/test/getPost.spec.ts @@ -4,5 +4,5 @@ const k = new Kronikarz(__dirname + "/samples"); test("simple get", () => { const post = k.getPost("2019", "12", "12", "test"); - expect(post.content.meta["title"]).toBe("Test"); + expect(post.title).toBe("Test"); }); -- cgit 1.4.1