[Pkg-javascript-commits] [node-jsonstream] 157/214: Create unitary test for issue #66

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 3e629cc13eb119c5be5420e589727c39b08c28fe
Author: Guillaume Chauvet <g.chauvet at bimedia.com.fr>
Date:   Wed Jul 22 10:57:05 2015 +0200

    Create unitary test for issue #66
---
 test/issues.js | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/test/issues.js b/test/issues.js
new file mode 100644
index 0000000..f0bd464
--- /dev/null
+++ b/test/issues.js
@@ -0,0 +1,18 @@
+var JSONStream = require('../');
+var test = require('tape')
+
+test('#66', function (t) {
+
+    var stream = JSONStream
+    .parse()
+    .on('error', function (err) {
+        t.ifError(err);
+    })
+    .on('end', function () {
+        t.end();
+    });
+
+    stream.write('["foo":bar[');
+    stream.end();
+
+});
\ 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