summary refs log tree commit diff
path: root/src/__tests__/index.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/__tests__/index.spec.ts')
-rw-r--r--src/__tests__/index.spec.ts3
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);
 });