From b555b014b85d711695fec7033d27fb54d2d6d831 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 12 Aug 2015 21:56:19 +0100 Subject: [PATCH] Update debug test to check lengths... --- test/nodes/core/core/58-debug_spec.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/nodes/core/core/58-debug_spec.js b/test/nodes/core/core/58-debug_spec.js index daf2fb555..9c76f9cfc 100644 --- a/test/nodes/core/core/58-debug_spec.js +++ b/test/nodes/core/core/58-debug_spec.js @@ -49,7 +49,7 @@ describe('debug node', function() { }, function(msg) { JSON.parse(msg).should.eql({ topic:"debug",data:{id:"n1",name:"Debug",msg:"test", - format:"string",property:"payload"} + format:"string [4]",property:"payload"} }); }, done); }); @@ -64,7 +64,7 @@ describe('debug node', function() { n1.emit("input", {payload:"test"}); }, function(msg) { JSON.parse(msg).should.eql({ - topic:"debug",data:{id:"n1",msg:"test",property:"payload",format:"string"} + topic:"debug",data:{id:"n1",msg:"test",property:"payload",format:"string [4]"} }); count++; }, function() { @@ -108,7 +108,7 @@ describe('debug node', function() { n1.emit("input", {payload:"test", foo:"bar"}); }, function(msg) { JSON.parse(msg).should.eql({ - topic:"debug",data:{id:"n1",msg:"bar",property:"foo",format:"string"} + topic:"debug",data:{id:"n1",msg:"bar",property:"foo",format:"string [3]"} }); }, done); }); @@ -122,7 +122,7 @@ describe('debug node', function() { n1.emit("input", {payload:"test", foo: {bar: "bar"}}); }, function(msg) { JSON.parse(msg).should.eql({ - topic:"debug",data:{id:"n1",msg:"bar",property:"foo.bar",format:"string"} + topic:"debug",data:{id:"n1",msg:"bar",property:"foo.bar",format:"string [3]"} }); }, done); }); @@ -194,7 +194,7 @@ describe('debug node', function() { }, function(msg) { JSON.parse(msg).should.eql({ topic:"debug", - data:{id:"n1",msg: '[\n 0,\n 1,\n 2,\n 3\n]',format:"array", + data:{id:"n1",msg: '[\n 0,\n 1,\n 2,\n 3\n]',format:"array [4]", property:"payload"} }); }, done); @@ -236,7 +236,7 @@ describe('debug node', function() { id:"n1", msg: Array(1001).join("X")+' ....', property:"payload", - format:"string" + format:"string [1001]" } }); }, done); @@ -256,7 +256,7 @@ describe('debug node', function() { id:"n1", msg: '48454c4c4f', property:"payload", - format: "buffer" + format: "buffer [5]" } }); }, done); @@ -277,7 +277,7 @@ describe('debug node', function() { }); }, function(msg) { JSON.parse(msg).should.eql({ - topic:"debug",data:{id:"n1",msg:"message 2",property:"payload",format:"string"} + topic:"debug",data:{id:"n1",msg:"message 2",property:"payload",format:"string [9]"} }); }, done); });