| Index: tools/vulcanize/node_modules/vulcanize/node_modules/cheerio/node_modules/htmlparser2/tests/02-stream.js
|
| diff --git a/tools/vulcanize/node_modules/vulcanize/node_modules/cheerio/node_modules/htmlparser2/tests/02-stream.js b/tools/vulcanize/node_modules/vulcanize/node_modules/cheerio/node_modules/htmlparser2/tests/02-stream.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fc22fedea97643b5cc786960b557b6ce665441c2
|
| --- /dev/null
|
| +++ b/tools/vulcanize/node_modules/vulcanize/node_modules/cheerio/node_modules/htmlparser2/tests/02-stream.js
|
| @@ -0,0 +1,20 @@
|
| +var helper = require("./test-helper.js"),
|
| + Stream = require("..").WritableStream,
|
| + fs = require("fs");
|
| +
|
| +exports.dir = "Stream";
|
| +
|
| +exports.test = function(test, cb){
|
| + fs.createReadStream(__dirname + test.file).pipe(
|
| + new Stream(
|
| + helper.getEventCollector(function(err, events){
|
| + cb(err, events);
|
| +
|
| + var handler = helper.getEventCollector(cb),
|
| + stream = new Stream(handler, test.options);
|
| +
|
| + stream.end(fs.readFileSync(__dirname + test.file));
|
| + }
|
| + ), test.options)
|
| + );
|
| +};
|
|
|