[Pkg-javascript-commits] [node-jsonstream] 16/214: the test was silly, passes now
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 1 12:58:33 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 4d0684b0a1cf55878c2779c961b22bf647bbc09e
Author: James Halliday <mail at substack.net>
Date: Wed Feb 22 08:02:31 2012 -0800
the test was silly, passes now
---
test/stringify_object.js | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/test/stringify_object.js b/test/stringify_object.js
index cf19e8e..873d231 100644
--- a/test/stringify_object.js
+++ b/test/stringify_object.js
@@ -26,17 +26,18 @@ var expected = {}
, count = 10
, ended = false
-while (count --)
+es.connect(
+ stringify,
+ es.writeArray(function (err, lines) {
+ it(JSON.parse(lines.join(''))).deepEqual(expected)
+ console.error('PASSED')
+ })
+)
+
+while (count --) {
var key = Math.random().toString(16).slice(2)
expected[key] = randomObj()
- stringify.write(key, randomObj)
+ stringify.write(key, expected[key])
+}
- es.connect(
- stringify,
- //JSONStream.parse([/./]),
- es.writeArray(function (err, lines) {
-
- it(JSON.parse(lines.join(''))).deepEqual(expected)
- console.error('PASSED')
- })
- )
+stringify.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