[Pkg-javascript-commits] [node-stream-splicer] 09/71: pop test now passes

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:55:47 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 73f1e5edd5069635b362b334b54277d083fc88f7
Author: James Halliday <mail at substack.net>
Date:   Sun Jun 8 05:27:03 2014 -0700

    pop test now passes
---
 index.js     | 3 ++-
 test/pop.js  | 2 +-
 test/push.js | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/index.js b/index.js
index 42760e3..4669554 100644
--- a/index.js
+++ b/index.js
@@ -90,7 +90,7 @@ Pipeline.prototype.push = function (stream) {
             Duplex.prototype.push.call(self, null);
         }
     });
-    this.emit('_mutate', stream);
+    this.emit('_mutate');
     
     return this;
 };
@@ -100,6 +100,7 @@ Pipeline.prototype.pop = function () {
     if (this._streams.length > 0) {
         this._streams[this._streams.length-1].unpipe(s);
     }
+    this.emit('_mutate');
     return s;
 };
 
diff --git a/test/pop.js b/test/pop.js
index 63f9b59..e22270a 100644
--- a/test/pop.js
+++ b/test/pop.js
@@ -37,7 +37,7 @@ test('pop', function (t) {
     
     var stream = pipeline([ a, b, c, d, replacer ]);
     stream.pipe(concat(function (body) {
-        t.deepEqual(body.toString(), '333333\n343434555666');
+        t.deepEqual(body.toString(), '333333\n343434\n555666');
     }));
     
     stream.write('{"x":3}\n');
diff --git a/test/push.js b/test/push.js
index 245be30..78fe2ec 100644
--- a/test/push.js
+++ b/test/push.js
@@ -4,7 +4,7 @@ var split = require('split');
 var concat = require('concat-stream');
 var test = require('tape');
 
-test('push to different destinations', function (t) {
+test('push', function (t) {
     var expected = {};
     expected.first = [ 333, 444, 555, 666, 777 ];
     expected.second = [ 6.66, 7.77 ];

-- 
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