summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-28 11:55:03 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-28 11:55:03 +0100
commit9f75ff1d2d5ebf34c040474e836e125f80253365 (patch)
tree523c52b9dd158e21d9247b58d81c655102323a26 /test
parentc11d7a84aa59e9b1179a9834129b2d776bab8bca (diff)
downloadkronikarz-9f75ff1d2d5ebf34c040474e836e125f80253365.tar.gz
kronikarz-9f75ff1d2d5ebf34c040474e836e125f80253365.zip
Add Post class
Diffstat (limited to 'test')
-rw-r--r--test/getPost.spec.ts2
1 files changed, 1 insertions, 1 deletions
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");
 });