diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-10-13 23:31:53 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-10-13 23:31:53 +0200 |
commit | 0ccea881106946b66d167eee0ec8116ae4e3019e (patch) | |
tree | f5bdf7501d97cf31a767ed91335145530db4f49d /src/__tests__/index.spec.ts | |
parent | 241ceeba4ad203b1e0711490344e970a3a452d07 (diff) | |
download | kronikarz-0ccea881106946b66d167eee0ec8116ae4e3019e.tar.gz kronikarz-0ccea881106946b66d167eee0ec8116ae4e3019e.zip |
Add parsePost
Diffstat (limited to 'src/__tests__/index.spec.ts')
-rw-r--r-- | src/__tests__/index.spec.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/__tests__/index.spec.ts b/src/__tests__/index.spec.ts index 64ce82d..52e28ba 100644 --- a/src/__tests__/index.spec.ts +++ b/src/__tests__/index.spec.ts @@ -1,6 +1,7 @@ import Kronikarz from ".."; test("basic", () => { - const k = new Kronikarz("./src/__tests__/samples"); + const k = new Kronikarz(__dirname + "/samples"); console.log(k.getPosts()); + expect(k.getPosts().length).toBe(1); }); |