mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
email node - remove promises for node8
and fixup tests
This commit is contained in:
@@ -225,13 +225,18 @@ describe('email Node', function () {
|
||||
|
||||
n2.on("input", function(msg) {
|
||||
//console.log("GOT",msg);
|
||||
msg.should.have.a.property("payload",'Hello World\n');
|
||||
msg.should.have.a.property("topic","Test");
|
||||
msg.should.have.a.property("from",'foo@example.com');
|
||||
msg.should.have.a.property("to",'bar@example.com');
|
||||
msg.should.have.a.property("attachments");
|
||||
msg.should.have.a.property("header");
|
||||
done();
|
||||
try {
|
||||
msg.should.have.a.property("payload",'Hello World\n');
|
||||
msg.should.have.a.property("topic","Test");
|
||||
msg.should.have.a.property("from",'foo@example.com');
|
||||
msg.should.have.a.property("to",'bar@example.com');
|
||||
msg.should.have.a.property("attachments");
|
||||
msg.should.have.a.property("header");
|
||||
done();
|
||||
}
|
||||
catch(e) {
|
||||
done(e)
|
||||
}
|
||||
});
|
||||
|
||||
n3.emit("input", {
|
||||
|
Reference in New Issue
Block a user