openvibers/openvibe.live Commits

Stub chat delivery in the global-ban cascade test sandbox

OP OpenVibers committed 4 Oct 2026 · 26ad8019ec · 1 file, +2 −1

Requested by finish-f1. Handed to the local harness by the cloud job pr-OpenVibe.Live-20; done by Claude opus.

Changes

ddiff --git a/test/ban-cascade.test.js b/test/ban-cascade.test.js
iindex b2aa97c2..8347ec0f 100644
---- a/test/ban-cascade.test.js
++++ b/test/ban-cascade.test.js
@@@ -83,8 +83,9 @@ const wrap = (d) => ({
logModerationAction: () => {},
};
const chatServer = { getConnectedUserIp: () => '203.0.113.7', disconnectUser: () => {} };
++ const delivery = { disconnect: () => {}, logModeration: () => {} };
// eslint-disable-next-line no-new-func
-- const fn = new Function('db', 'chatServer', 'permissions', 'console', `${m[0]}; return performGlobalBan;`)(db, chatServer, permissions, { log() {} });
++ const fn = new Function('db', 'chatServer', 'delivery', 'permissions', 'console', `${m[0]}; return performGlobalBan;`)(db, chatServer, delivery, permissions, { log() {} });
let status = 200, body = null;
const res = { status(c) { status = c; return this; }, json(b) { body = b; return this; } };
const actor = db.getUserById(actorId);