@gregoriusrippenstein/erlang-red-unittest 0.11.0 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -32,7 +32,9 @@ module.exports = function(RED) {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
msg = RED.util.encodeObject(msg);
|
|
35
|
-
|
|
35
|
+
if (!cfg.ignore_failure_if_succeed) {
|
|
36
|
+
RED.comms.publish("debug", msg);
|
|
37
|
+
}
|
|
36
38
|
} catch (ex) {
|
|
37
39
|
console.error(ex)
|
|
38
40
|
}
|
|
@@ -72,7 +74,7 @@ module.exports = function(RED) {
|
|
|
72
74
|
failures.push(sendToDebug(node, rule, msg, 20))
|
|
73
75
|
}
|
|
74
76
|
} else if ( rule.tot == "num") {
|
|
75
|
-
if (
|
|
77
|
+
if ( rule.to != RED.util.getObjectProperty(msg,rule.p) ) {
|
|
76
78
|
failures.push(sendToDebug(node, rule, msg, 20))
|
|
77
79
|
}
|
|
78
80
|
} else if (rule.tot == "bin") {
|
|
@@ -150,7 +152,7 @@ module.exports = function(RED) {
|
|
|
150
152
|
if (failures.length > 0 ) {
|
|
151
153
|
node.status({fill: "red", shape: "dot", text: "assert failed"})
|
|
152
154
|
msg.assert_succeed = false
|
|
153
|
-
msg.assert_failures = failures.concat(unsupported)
|
|
155
|
+
msg.assert_failures = failures.concat(unsupported)
|
|
154
156
|
} else {
|
|
155
157
|
if ( unsupported.length > 0) {
|
|
156
158
|
node.status({ fill: "yellow", shape: "ring", text: "unsupported errors - check debug" })
|