[Pkg-javascript-commits] [node-jsonstream] 139/214: Enable multiple_objects test

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 12:58:51 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 d7883dcf5596fd5ff01a52460d85fa5ee44d2df5
Author: Santiago Gimeno <santiago.gimeno at quantion.es>
Date:   Mon Mar 9 10:23:10 2015 +0100

    Enable multiple_objects test
    
    - After removing the 'root' event this test passes again.
---
 test/{disabled => }/multiple_objects.js | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/test/disabled/multiple_objects.js b/test/multiple_objects.js
similarity index 84%
rename from test/disabled/multiple_objects.js
rename to test/multiple_objects.js
index b1c8f91..22f6324 100644
--- a/test/disabled/multiple_objects.js
+++ b/test/multiple_objects.js
@@ -10,13 +10,8 @@ var str = fs.readFileSync(file);
 var datas = {}
 
 var server = net.createServer(function(client) {
-    var root_calls = 0;
     var data_calls = 0;
     var parser = JSONStream.parse(['rows', true, 'key']);
-    parser.on('root', function(root, count) {
-        ++ root_calls;
-    });
-
     parser.on('data', function(data) {
         ++ data_calls;
         datas[data] = (datas[data] || 0) + 1
@@ -26,9 +21,8 @@ var server = net.createServer(function(client) {
     parser.on('end', function() {
         console.log('END')
         var min = Infinity
-        for (var d in datas) 
+        for (var d in datas)
           min = min > datas[d] ? datas[d] : min
-        it(root_calls).equal(3);
         it(min).equal(3);
         server.close();
     });

-- 
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