fix: update triage-dispatch static analysis tests for enqueueSidecar helper

The static analysis tests check source code for `return "continue"` patterns.
After extracting enqueueSidecar(), the return is now via the helper call.
Accept both patterns in the assertion.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson 2026-03-26 09:29:47 -06:00
parent 174aa33231
commit 07850da79a

View file

@ -119,7 +119,7 @@ test("dispatch: triage dispatch keeps the loop in continue mode", () => {
postUnitSrc.indexOf("// ── Quick-task dispatch"),
);
assert.ok(
triageBlock.includes('return "continue"'),
triageBlock.includes('return "continue"') || triageBlock.includes("return enqueueSidecar("),
"triage dispatch should return 'continue' after enqueuing sidecar work",
);
});
@ -320,7 +320,7 @@ test("dispatch: quick-task dispatch keeps the loop in continue mode", () => {
postUnitSrc.indexOf("if (s.stepMode)"),
);
assert.ok(
quickTaskSection.includes('return "continue"'),
quickTaskSection.includes('return "continue"') || quickTaskSection.includes("return enqueueSidecar("),
"quick-task dispatch should return 'continue' after enqueuing sidecar work",
);
});