From ec86ec188b219ebd3e3e4f89d373553cd04d14fe Mon Sep 17 00:00:00 2001 From: Sam Machin Date: Wed, 2 Aug 2023 14:32:39 +0100 Subject: [PATCH] Update Test I've changed the DELETE test to expect an empty object as the node is requesting an object response, this will therefore cover testing the new functionality. The subsequent HEAD test also expects a 204 response but the requested type is txt so that will still expect an empty string response. --- test/nodes/core/network/21-httprequest_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/nodes/core/network/21-httprequest_spec.js b/test/nodes/core/network/21-httprequest_spec.js index 14f3fd628..cc7de59d2 100644 --- a/test/nodes/core/network/21-httprequest_spec.js +++ b/test/nodes/core/network/21-httprequest_spec.js @@ -557,7 +557,7 @@ describe('HTTP Request Node', function() { var n2 = helper.getNode("n2"); n2.on("input", function(msg) { try { - msg.should.have.property('payload',''); + msg.should.have.property('payload',{}); msg.should.have.property('statusCode',204); done(); } catch(err) {