From 49e82e812812ba75175d98173379d2e416e17b8f Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Mon, 14 Oct 2019 09:47:28 +0200 Subject: Add getPost --- test/getPost.spec.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/getPost.spec.ts (limited to 'test/getPost.spec.ts') diff --git a/test/getPost.spec.ts b/test/getPost.spec.ts new file mode 100644 index 0000000..6a5e4e0 --- /dev/null +++ b/test/getPost.spec.ts @@ -0,0 +1,8 @@ +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"); +}); -- cgit 1.4.1