mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-09 00:49:41 +02:00
COD-118 fix(test): stub resetRespawnBreaker in MockSession
POST /api/sessions/:id/interactive calls session.resetRespawnBreaker() before startInteractive(); mock missing the stub → route threw → 422.
This commit is contained in:
@@ -266,6 +266,9 @@ export class MockSession extends EventEmitter {
|
|||||||
/** Stub for startInteractive */
|
/** Stub for startInteractive */
|
||||||
startInteractive = vi.fn(async () => {});
|
startInteractive = vi.fn(async () => {});
|
||||||
|
|
||||||
|
/** Stub for resetRespawnBreaker (COD-118) */
|
||||||
|
resetRespawnBreaker = vi.fn();
|
||||||
|
|
||||||
/** Stub for startShell */
|
/** Stub for startShell */
|
||||||
startShell = vi.fn(async () => {});
|
startShell = vi.fn(async () => {});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user