diff options
Diffstat (limited to 'test/getPost.spec.ts')
-rw-r--r-- | test/getPost.spec.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/getPost.spec.ts b/test/getPost.spec.ts index 6a5e4e0..080bfbd 100644 --- a/test/getPost.spec.ts +++ b/test/getPost.spec.ts @@ -3,6 +3,7 @@ import Kronikarz from "../dist"; const k = new Kronikarz(__dirname + "/samples"); test("simple get", () => { - const post = k.getPost("2019", "12", "12", "test"); - expect(post.content.meta["title"]).toBe("Test"); + const p = k.getPost("2019", "12", "12", "test"); + const post = p.toApi(); + expect(post.title).toBe("Test"); }); |