split2
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "split2", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "split a Text Stream into a Line Stream, using Stream 2", | ||
@@ -28,4 +28,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"through2": "~0.6.0" | ||
"through2": "~0.6.1" | ||
} | ||
} |
13
test.js
@@ -136,2 +136,15 @@ | ||
input.end(new Buffer('hello\nworld')) | ||
}) | ||
test('has destroy method', function(t) { | ||
t.plan(1) | ||
var input = split(function(line) {}) | ||
input.on('close', function() { | ||
t.ok(true, 'close emitted') | ||
t.end() | ||
}) | ||
input.destroy() | ||
}) |
254201
164
Updatedthrough2@~0.6.1