Add complete test, and fix tests

This commit is contained in:
Dave Conway-Jones
2025-04-21 14:58:25 +01:00
parent 316eb7c9ef
commit c771b175b1
4 changed files with 57 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ module.exports = function(RED) {
this.scope = n.scope;
// auto-filter out any directly connected nodes to avoid simple loopback
const w = node.wires.flat().toString();
const w = this.wires.flat().toString();
for (let i=0; i < this.scope.length; i++) {
if (w.includes(this.scope[i])) {
this.scope.splice(i, 1);

View File

@@ -23,7 +23,7 @@ module.exports = function(RED) {
this.scope = n.scope;
// auto-filter out any directly connected nodes to avoid simple loopback
const w = node.wires.flat().toString();
const w = this.wires.flat().toString();
for (let i=0; i < this.scope.length; i++) {
if (w.includes(this.scope[i])) {
this.scope.splice(i, 1);