diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-28 11:55:03 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-28 11:55:03 +0100 |
commit | 9f75ff1d2d5ebf34c040474e836e125f80253365 (patch) | |
tree | 523c52b9dd158e21d9247b58d81c655102323a26 /test | |
parent | c11d7a84aa59e9b1179a9834129b2d776bab8bca (diff) | |
download | kronikarz-9f75ff1d2d5ebf34c040474e836e125f80253365.tar.gz kronikarz-9f75ff1d2d5ebf34c040474e836e125f80253365.zip |
Add Post class
Diffstat (limited to 'test')
-rw-r--r-- | test/getPost.spec.ts | 2 |
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"); }); |