mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-20 09:09:35 +02:00
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:
1 parent
35a0000f13
commit
efe3151377
1 file changed
+2
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user