[Pkg-javascript-commits] [node-stream-combiner2] 10/41: failing test for 0-argument combine()

Bastien Roucariès rouca at moszumanska.debian.org
Wed Sep 6 09:57:52 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-combiner2.

commit afe27cc3ff0157de8b2e27f392c8a81cbb5fbaa6
Author: James Halliday <mail at substack.net>
Date:   Thu May 8 18:31:20 2014 -0700

    failing test for 0-argument combine()
---
 test/index.js | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/test/index.js b/test/index.js
index d17ddad..97cd73e 100644
--- a/test/index.js
+++ b/test/index.js
@@ -50,3 +50,16 @@ test('3 pipe do not duplicate errors', function (test) {
 
 })
 
+test('0 argument through stream', function (test) {
+  test.plan(3)
+  var pipe = combine()
+   , expected = [ 'beep', 'boop', 'robots' ]
+
+  pipe.pipe(es.through(function(data) {
+    test.equal(data, expected.shift())
+  }))
+  pipe.write('beep')
+  pipe.write('boop')
+  pipe.end('robots')
+})
+

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



More information about the Pkg-javascript-commits mailing list