diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-10-14 09:47:28 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-10-14 09:47:51 +0200 |
commit | 49e82e812812ba75175d98173379d2e416e17b8f (patch) | |
tree | f67bdcffce9aca8a76b534124a0eabbe85658768 /test/getPost.spec.ts | |
parent | 262ebdc07892f3c892d4831c276444df6f6e22f1 (diff) | |
download | kronikarz-49e82e812812ba75175d98173379d2e416e17b8f.tar.gz kronikarz-49e82e812812ba75175d98173379d2e416e17b8f.zip |
Add getPost
Diffstat (limited to 'test/getPost.spec.ts')
-rw-r--r-- | test/getPost.spec.ts | 8 |
1 files changed, 8 insertions, 0 deletions
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"); +}); |