summary refs log tree commit diff
path: root/test/getPost.spec.ts
blob: 6a5e4e0023af72b121b440b0c8141711d760d102 (plain)
1
2
3
4
5
6
7
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");
});