[Pkg-javascript-commits] [node-stream-splicer] 41/71: passing the nested test
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:55:50 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 ed8d39b772fbc99c9d9fdb25e7d3a20903e98e5d
Author: James Halliday <mail at substack.net>
Date: Mon Jun 9 19:27:16 2014 -0700
passing the nested test
---
index.js | 4 ++++
test/nested.js | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/index.js b/index.js
index e4db03c..b2c14a4 100644
--- a/index.js
+++ b/index.js
@@ -155,6 +155,10 @@ Pipeline.prototype.splice = function (start, removeLen) {
return removed;
};
+Pipeline.prototype.get = function (index) {
+ return this._streams[index];
+};
+
Pipeline.prototype.indexOf = function (stream) {
return indexof(this._streams, stream);
};
diff --git a/test/nested.js b/test/nested.js
index 50c2f11..0f8f5ad 100644
--- a/test/nested.js
+++ b/test/nested.js
@@ -32,6 +32,6 @@ test('nested splicer', function (t) {
stream.write('a\n');
stream.write('b\n');
- stream.write('c\n');
+ 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