fix(#647): give the header-stats test app the input queue the constructor creates

Its prototype-only app had no _pendingDeliveries and only passed because the
removed try/catch swallowed the read. The real constructor always creates the
Map.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Codeman maintainer committed 2026-10-18 08:11:44 +02:00
1 parent 35a0000f13
commit efe3151377
1 file changed
+2
+2
View File
@@ -69,6 +69,8 @@ beforeAll(async () => {
function makeApp() { function makeApp() {
const app = Object.create(CodemanApp.prototype) as Record<string, any>; const app = Object.create(CodemanApp.prototype) as Record<string, any>;
app.$ = (id: string) => document.getElementById(id); app.$ = (id: string) => document.getElementById(id);
// The constructor always creates the input queue; _updateConnectionIndicator reads it.
app._pendingDeliveries = new Map();
return app; return app;
} }