diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
commit | cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch) | |
tree | 92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/htmlparser2/test/02-stream.js | |
parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) |
remove node_modules
Diffstat (limited to 'node_modules/htmlparser2/test/02-stream.js')
-rw-r--r-- | node_modules/htmlparser2/test/02-stream.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/node_modules/htmlparser2/test/02-stream.js b/node_modules/htmlparser2/test/02-stream.js deleted file mode 100644 index 340398067..000000000 --- a/node_modules/htmlparser2/test/02-stream.js +++ /dev/null @@ -1,23 +0,0 @@ -var helper = require("./test-helper.js"), - Stream = require("..").WritableStream, - fs = require("fs"), - path = require("path"); - -helper.mochaTest("Stream", __dirname, function(test, cb){ - var filePath = path.join(__dirname, "Documents", test.file); - fs.createReadStream(filePath).pipe( - new Stream( - helper.getEventCollector(function(err, events){ - cb(err, events); - - var handler = helper.getEventCollector(cb), - stream = new Stream(handler, test.options); - - fs.readFile(filePath, function(err, data){ - if(err) throw err; - else stream.end(data); - }); - } - ), test.options) - ).on("error", cb); -});
\ No newline at end of file |