[Pkg-javascript-commits] [node-stream-splicer] 14/71: comparing more, splice test fails
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 ed8e925528c8b62cb1a14a764da11386cb130e82
Author: James Halliday <mail at substack.net>
Date: Sun Jun 8 06:45:55 2014 -0700
comparing more, splice test fails
---
test/splice.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/splice.js b/test/splice.js
index b73f8ac..9af35bd 100644
--- a/test/splice.js
+++ b/test/splice.js
@@ -7,6 +7,8 @@ var test = require('tape');
test('splice', function (t) {
var expected = {};
expected.replacer = [ '333', '444', '5000', '6000' ];
+ expected.d = [ 3, 4 ];
+ expected.thousander = [ 5, 6 ];
t.plan(Object.keys(expected).reduce(function (sum, key) {
return sum + expected[key].length;
@@ -22,10 +24,12 @@ test('splice', function (t) {
next();
});
var d = through.obj(function (x, enc, next) {
+ t.equal(x, expected.d.shift(), 'd');
this.push(String(x * 111));
next();
});
var thousander = through.obj(function (x, enc, next) {
+ t.equal(x, expected.thousander.shift(), 'thousander');
this.push(String(x * 1000));
next();
});
--
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