1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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.
This commit is contained in:
Sam Machin 2023-08-02 14:32:39 +01:00 committed by GitHub
parent 2b01a3fcd3
commit ec86ec188b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -557,7 +557,7 @@ describe('HTTP Request Node', function() {
var n2 = helper.getNode("n2"); var n2 = helper.getNode("n2");
n2.on("input", function(msg) { n2.on("input", function(msg) {
try { try {
msg.should.have.property('payload',''); msg.should.have.property('payload',{});
msg.should.have.property('statusCode',204); msg.should.have.property('statusCode',204);
done(); done();
} catch(err) { } catch(err) {