From 633a6a0ee6e9740d9f11cb8b1fe9d14cab3452fd Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 4 Feb 2016 21:52:27 +0000 Subject: [PATCH] Fix inject test to use a proper type --- test/nodes/core/core/20-inject_spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/nodes/core/core/20-inject_spec.js b/test/nodes/core/core/20-inject_spec.js index aeeac9dda..0d7ee42b0 100644 --- a/test/nodes/core/core/20-inject_spec.js +++ b/test/nodes/core/core/20-inject_spec.js @@ -23,7 +23,7 @@ describe('inject node', function() { before(function(done) { helper.startServer(done); }); - + afterEach(function() { helper.unload(); }); @@ -87,13 +87,13 @@ describe('inject node', function() { it('should inject message', function(done) { helper.load(injectNode, [{id:"n1", type:"inject", - payloadType:"some type", topic: "t4", + payloadType:"str", topic: "t4",payload:"hello", wires:[["n4"]] }, { id:"n4", type:"helper"}], function() { var n4 = helper.getNode("n4"); n4.on("input", function(msg) { msg.should.have.property('topic', 't4'); - msg.should.have.property('payload', ''); + msg.should.have.property('payload', 'hello'); helper.clearFlows().then(function() { done(); });