[Pkg-javascript-commits] [node-stream-splicer] 27/71: failing passthrough stream test

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:55:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-stream-splicer.

commit ac54fe57be52dbe6fc63df89e54d342adb70195c
Author: James Halliday <mail at substack.net>
Date:   Mon Jun 9 13:56:20 2014 -0700

    failing passthrough stream test
---
 test/empty.js | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/test/empty.js b/test/empty.js
new file mode 100644
index 0000000..5ee1ccb
--- /dev/null
+++ b/test/empty.js
@@ -0,0 +1,17 @@
+var pipeline = require('../');
+var concat = require('concat-stream');
+var test = require('tape');
+
+test('empty passthrough stream', function (t) {
+    t.plan(1);
+    
+    var stream = pipeline([]);
+    stream.pipe(concat(function (body) {
+        t.deepEqual(body.toString(), 'abc');
+    }));
+    
+    stream.write('a');
+    stream.write('b');
+    stream.write('c');
+    stream.end();
+});

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-stream-splicer.git



More information about the Pkg-javascript-commits mailing list