@gregoriusrippenstein/erlang-red-unittest 0.10.7 → 0.10.8
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.
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
|
|
106
|
-
let data = RED.nodes.filterNodes({z:RED.workspaces.active()}).filter(
|
|
106
|
+
let data = RED.nodes.filterNodes({z:RED.workspaces.active()}).filter(n => !n.type.startsWith("ut-assert-")).map( nde =>{
|
|
107
107
|
return {
|
|
108
108
|
label: RED.utils.getNodeLabel(nde),
|
|
109
109
|
icon: "",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
-
let data = RED.nodes.filterNodes({ z: RED.workspaces.active() }).filter(n => n.
|
|
121
|
+
let data = RED.nodes.filterNodes({ z: RED.workspaces.active() }).filter(n => !n.type.startsWith("ut-assert-")).map(nde => {
|
|
122
122
|
return {
|
|
123
123
|
label: RED.utils.getNodeLabel(nde),
|
|
124
124
|
icon: "",
|
|
@@ -125,6 +125,16 @@ module.exports = function(RED) {
|
|
|
125
125
|
} else {
|
|
126
126
|
unsupported.push(postUnsupported(rule,msg))
|
|
127
127
|
}
|
|
128
|
+
/*
|
|
129
|
+
* Rule is not equal
|
|
130
|
+
*/
|
|
131
|
+
} else if (rule.t == "noteql" && rule.pt == "msg" && rule.tot == "msg") {
|
|
132
|
+
/* comparing two values on the message object */
|
|
133
|
+
let expObj = RED.util.getObjectProperty(msg, rule.to)
|
|
134
|
+
let oldObj = RED.util.getObjectProperty(msg, rule.p)
|
|
135
|
+
if (expObj == oldObj) {
|
|
136
|
+
failures.push(sendToDebug(node, rule, msg, 20))
|
|
137
|
+
}
|
|
128
138
|
/*
|
|
129
139
|
* Other rule types are not supported
|
|
130
140
|
*/
|
package/package.json
CHANGED