diff options
Diffstat (limited to 'test/getPost.spec.ts')
-rw-r--r-- | test/getPost.spec.ts | 3 |
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"); }); |