diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-28 18:48:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-28 18:48:37 +0100 |
commit | 3cf1e858dfad1d8f3ba7079e7e0b249c1cdfd5f5 (patch) | |
tree | 2e6cfbdbc7b2de3574c6ec35bbd3c88ef116f786 /test/check.js | |
parent | fc0089b31bd632451786b743df35f51c8ddba07a (diff) | |
download | kronika-3cf1e858dfad1d8f3ba7079e7e0b249c1cdfd5f5.tar.gz kronika-3cf1e858dfad1d8f3ba7079e7e0b249c1cdfd5f5.zip |
Add api building (#5)
Diffstat (limited to 'test/check.js')
-rw-r--r-- | test/check.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/check.js b/test/check.js index 5bae1f5..12ed637 100644 --- a/test/check.js +++ b/test/check.js @@ -1,11 +1,11 @@ -import readline from "readline"; -import { parsePost } from "kronikarz/dist/parsePost"; +import readline from 'readline'; +import Post from 'kronikarz/dist/Post'; const rl = readline.createInterface({ input: process.stdin, - output: process.stdout + output: process.stdout, }); -rl.question("", filePath => { - parsePost(filePath); +rl.question('', (filePath) => { + new Post(filePath); }); |