summary refs log tree commit diff
path: root/test/getPost.spec.ts
blob: 72d7b5ea3c686592270a7cbca597f57c64db6f5b (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.title).toBe("Test");
});