[Pkg-javascript-commits] [node-jsonstream] 158/214: Remove useless unitary test

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 12:58:54 UTC 2017


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

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

commit e5b4c283b8d44a0e1e351fc3b6d4e36784b80702
Author: Guillaume Chauvet <g.chauvet at bimedia.com.fr>
Date:   Wed Jul 22 11:21:03 2015 +0200

    Remove useless unitary test
---
 test/unvalid_stream.js | 37 -------------------------------------
 1 file changed, 37 deletions(-)

diff --git a/test/unvalid_stream.js b/test/unvalid_stream.js
deleted file mode 100644
index 53a1be2..0000000
--- a/test/unvalid_stream.js
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-var stream = require ('stream');
-var JSONStream = require('../');
-var it = require('it-is');
-
-var parser = JSONStream.parse('*')
-  , called = 0
-  , ended = false
-  , error = false
-  , parsed = [];
-  
-var s = new stream.Readable();
-s._read = function noop() {};
-s.push('["foo":bar[');
-s.push(null);
-
-parser.on('data', function (data) {
-  called++;
-});
-
-parser.on('end', function () {
-  ended = true;
-});
-
-parser.on('error', function () {
-  error = true;
-});
-
-s.pipe(parser);
-
-process.on('exit', function () {
-  it(ended).equal(true);
-  it(error).equal(true);
-  it(called).equal(0);
-  console.error('PASSED');
-})
\ No newline at end of file

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



More information about the Pkg-javascript-commits mailing list