[Pkg-javascript-commits] [node-stream-splicer] 63/71: failing empty with no data test

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:55:53 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 f155f5ec0103209adee028cc124306a52961894c
Author: James Halliday <mail at substack.net>
Date:   Thu Jun 25 12:10:15 2015 -0700

    failing empty with no data test
---
 test/empty_no_data.js | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/test/empty_no_data.js b/test/empty_no_data.js
new file mode 100644
index 0000000..1acf078
--- /dev/null
+++ b/test/empty_no_data.js
@@ -0,0 +1,13 @@
+var pipeline = require('../');
+var concat = require('concat-stream');
+var test = require('tape');
+
+test('empty with no data', function (t) {
+    t.plan(1);
+    
+    var stream = pipeline([]);
+    stream.end();
+    stream.pipe(concat(function (body) {
+        t.deepEqual(body.toString(), '');
+    }));
+});

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