diff --git a/test.js b/test.js index bfe9fa7..0e5f0c6 100644 --- a/test.js +++ b/test.js @@ -1,2 +1,3 @@ var smartfile = require("./index.js"); -console.log(smartfile.readFileToString("./test/mytest.txt")); +var pr = require("pushrocks"); +pr.beautylog.info(smartfile.readFileToString("./test/mytest.txt")); diff --git a/test/mytest.txt b/test/mytest.txt index 2b48449..75ffaad 100644 --- a/test/mytest.txt +++ b/test/mytest.txt @@ -1 +1 @@ -This is some test text. If this is displayed when running "npm test", then the test has succeeded. \ No newline at end of file +This is some test text stored in ./test/mytest.txt -> If this is displayed when running "npm test", then the test has succeeded. \ No newline at end of file diff --git a/ts/test.ts b/ts/test.ts index 3129849..2ba3ad1 100644 --- a/ts/test.ts +++ b/ts/test.ts @@ -1,2 +1,3 @@ var smartfile = require("./index.js"); -console.log(smartfile.readFileToString("./test/mytest.txt")); \ No newline at end of file +var pr = require("pushrocks") +pr.beautylog.info(smartfile.readFileToString("./test/mytest.txt")); \ No newline at end of file