mirror of https://github.com/lukechilds/docs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
406 B
19 lines
406 B
//Runs tests for feeds
|
|
|
|
var helper = require("./test-helper.js"),
|
|
FeedHandler = require("..").RssHandler,
|
|
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()
|
|
);
|
|
}
|
|
);
|
|
});
|