Plato on Github
Report Home
node_modules/htmlparser2/test/03-feed.js
Maintainability
86.16
Lines of code
17
Difficulty
6.40
Estimated Errors
0.11
Function weight
By Complexity
By SLOC
//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() ); } ); });