@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( n => n.id != this.id ).map( nde =>{
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.id != this.id).map(nde => {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gregoriusrippenstein/erlang-red-unittest",
3
- "version": "0.10.7",
3
+ "version": "0.10.8",
4
4
  "dependencies": {
5
5
  },
6
6
 
@@ -275,6 +275,7 @@ function sendUnittestngHalt() {
275
275
  }).fail((e) => {
276
276
  RED.notify("Failed to send halt command", "error")
277
277
  });
278
+ RED.events.emit('unittesting:halting')
278
279
  }
279
280
 
280
281
  function resetTestResultsRow() {