fedifeed/test/test.js
Sam Therapy 8a6a005502
change var to let
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-02-06 18:46:21 -06:00

14 lines
319 B
JavaScript

// do a test
import { createReadStream, writeFileSync } from "fs";
import convert from "../lib/convert.js";
let r = createReadStream("./test/sample.atom");
convert(r,function(er,data){
if (er){return console.log("error: ",er);}
console.log("ok");
writeFileSync("./test/result.html",data,"utf8");
});