This repository has been archived on 2023-05-27. You can view files and clone it, but cannot push or open issues or pull requests.
fedifeed/test/test.js
Sam Therapy 8a6a005502
Some checks failed
continuous-integration/drone/push Build is failing
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");
});