updates
This commit is contained in:
@@ -4,7 +4,7 @@ const assert = require('node:assert/strict');
|
||||
const NodeClass = require('../../src/nodeClass');
|
||||
const { makeNodeStub, makeREDStub } = require('../helpers/factories');
|
||||
|
||||
test('registerChild with unknown node id currently throws (known robustness gap)', () => {
|
||||
test('registerChild with unknown node id is ignored without throwing', () => {
|
||||
const inst = Object.create(NodeClass.prototype);
|
||||
const node = makeNodeStub();
|
||||
|
||||
@@ -18,7 +18,7 @@ test('registerChild with unknown node id currently throws (known robustness gap)
|
||||
|
||||
inst._attachInputHandler();
|
||||
|
||||
assert.throws(() => {
|
||||
assert.doesNotThrow(() => {
|
||||
node._handlers.input(
|
||||
{ topic: 'registerChild', payload: 'missing-child', positionVsParent: 'upstream' },
|
||||
() => {},
|
||||
|
||||
Reference in New Issue
Block a user