[Pkg-javascript-commits] [node-module-deps] 253/444: drop stream file support, concat outside

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:48:01 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-module-deps.

commit 90d2c89025b2f66692b1e0e3605009983492f54b
Author: James Halliday <mail at substack.net>
Date:   Sun Jul 20 03:30:42 2014 -0700

    drop stream file support, concat outside
---
 test/stream.js | 42 ------------------------------------------
 1 file changed, 42 deletions(-)

diff --git a/test/stream.js b/test/stream.js
deleted file mode 100644
index 7b718ae..0000000
--- a/test/stream.js
+++ /dev/null
@@ -1,42 +0,0 @@
-var parser = require('../');
-var test = require('tape');
-var JSONStream = require('JSONStream');
-var packer = require('browser-pack');
-var through = require('through');
-var concat = require('concat-stream');
-
-test('read from a stream', function (t) {
-    t.plan(1);
-    var tr = through();
-    var p = parser(tr);
-    
-    p.on('error', t.fail.bind(t));
-    var pack = packer();
-    
-    p.pipe(JSONStream.stringify()).pipe(pack)
-        .pipe(concat({ encoding: 'string' }, function (src) {
-            Function(['t'], src)(t);
-        }))
-    ;
-    
-    tr.queue('t.ok(true)');
-    tr.queue(null);
-});
-
-test('infer path from fs-like streams', function (t) {
-    t.plan(2);
-    var path = 'foo-path'
-    var stream = through();
-    
-    stream.path = path
-    
-    var p = parser(stream);
-    p.on('error', t.fail.bind(t));
-    p.on('data', function(result) {
-        t.ok(!result.id.match(/fake/), "id should not be autogenerated")
-        t.equal(result.id, path, "id should be stream path property")
-    });
-
-    stream.queue('');
-    stream.queue(null);
-});

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



More information about the Pkg-javascript-commits mailing list