mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-22 16:24:48 -06:00
fa9ae9437c
The gitbook install has been incredibly flaky due to it's dependency on npm. This commit simply vendors the node_modules so that each time we build the site the process doesn't have to re-run gitbook install. Signed-off-by: Torin Sandall <torinsandall@gmail.com>
19 lines
406 B
JavaScript
19 lines
406 B
JavaScript
//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()
|
|
);
|
|
}
|
|
);
|
|
}); |