wallet-core/node_modules/htmlparser2/test/03-feed.js
2017-05-03 15:35:00 +02:00

19 lines
414 B
JavaScript

//Runs tests for feeds
var helper = require("./test-helper.js"),
FeedHandler = require("../lib/FeedHandler.js"),
fs = require("fs"),
path = require("path");
helper.mochaTest("Feeds", __dirname, function(test, cb){
fs.readFile(
path.join(__dirname, "Documents", test.file),
function(err, file){
helper.writeToParser(
new FeedHandler(cb),
{ xmlMode: true },
file.toString()
);
}
);
});