Add basic link-call/return tests

This commit is contained in:
Nick O'Leary
2021-09-29 13:49:55 +01:00
parent b01fd24e15
commit 1931395fdb
3 changed files with 72 additions and 5 deletions

View File

@@ -56,10 +56,10 @@ module.exports = function(RED) {
if (returnNode && returnNode.returnLinkMessage) {
returnNode.returnLinkMessage(messageEvent.id, msg);
} else {
node.warn("Return target not a link-call node")
node.warn(RED._("link.error.missingReturn"))
}
} else {
node.warn("No call return target")
node.warn(RED._("link.error.missingReturn"))
}
done();
} else if (mode === "link") {
@@ -101,7 +101,7 @@ module.exports = function(RED) {
messageEvent.send(msg);
messageEvent.done();
} else {
node.warn("Unrecognised message returned")
node.send(msg);
}
}
}

View File

@@ -164,8 +164,10 @@
"linkOutReturn": "link return",
"outMode": "Mode",
"sendToAll": "Send to all connected link nodes",
"returnToCaller": "Return to calling link node"
"returnToCaller": "Return to calling link node",
"error": {
"missingReturn": "Missing return node information"
}
},
"tls": {
"tls": "TLS configuration",