[Pkg-javascript-commits] [node-jsonstream] 175/214: add test case for nested objects
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 1 12:58:57 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 59698948e173a12dd9b4ef6134d2d7f0b94eb405
Author: Sean Lang <slang800 at gmail.com>
Date: Sun Nov 15 20:39:26 2015 -0500
add test case for nested objects
ref #88
---
test/issues.js | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/test/issues.js b/test/issues.js
index eba392e..ea4c743 100644
--- a/test/issues.js
+++ b/test/issues.js
@@ -18,3 +18,17 @@ test('#66', function (t) {
stream.end();
});
+
+test('#81 - failure to parse nested objects', function (t) {
+ var stream = JSONStream
+ .parse('.bar.foo')
+ .on('error', function (err) {
+ t.error(err);
+ })
+ .on('end', function () {
+ t.end();
+ });
+
+ stream.write('{"bar":{"foo":"baz"}}');
+ stream.end();
+});
--
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