summary refs log tree commit diff
path: root/test/getPost.spec.ts
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-28 12:18:47 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-28 12:18:47 +0100
commit74ee8edb555ef128112378f828c636bc04533b31 (patch)
treefe4a09d720f9437bc0dc418180c9cf11f4d0a14b /test/getPost.spec.ts
parent9f75ff1d2d5ebf34c040474e836e125f80253365 (diff)
downloadkronikarz-74ee8edb555ef128112378f828c636bc04533b31.tar.gz
kronikarz-74ee8edb555ef128112378f828c636bc04533b31.zip
Fix remove attributes
Diffstat (limited to 'test/getPost.spec.ts')
-rw-r--r--test/getPost.spec.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/getPost.spec.ts b/test/getPost.spec.ts
index 72d7b5e..080bfbd 100644
--- a/test/getPost.spec.ts
+++ b/test/getPost.spec.ts
@@ -3,6 +3,7 @@ import Kronikarz from "../dist";
 const k = new Kronikarz(__dirname + "/samples");
 
 test("simple get", () => {
-  const post = k.getPost("2019", "12", "12", "test");
+  const p = k.getPost("2019", "12", "12", "test");
+    const post = p.toApi();
   expect(post.title).toBe("Test");
 });