summary refs log tree commit diff
path: root/test/getPost.spec.ts
blob: 080bfbd8628752275664f906f4371371c7ef8fd5 (plain)
1
2
3
4
5
6
7
8
9
import Kronikarz from "../dist";

const k = new Kronikarz(__dirname + "/samples");

test("simple get", () => {
  const p = k.getPost("2019", "12", "12", "test");
    const post = p.toApi();
  expect(post.title).toBe("Test");
});