mirror of
https://github.com/node-red/node-red
synced 2024-11-22 16:33:24 +00: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:
parent
2b01a3fcd3
commit
ec86ec188b
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user