diff --git a/tests/unit/runbook-drill.test.ts b/tests/unit/runbook-drill.test.ts index 38d85701..8bd5bfab 100644 --- a/tests/unit/runbook-drill.test.ts +++ b/tests/unit/runbook-drill.test.ts @@ -125,5 +125,10 @@ describe("runbook drill verdicts", () => { expect(source).not.toMatch(/assertion\([^;]*,\s*true\s*\)/u); expect(source).not.toMatch(/Asserted:\s*true\b/u); expect(source).not.toMatch(/injectedMountFailure\s*=\s*true/u); + // 0929/11-08. The drill records string verdicts now; the patterns above + // only knew the old boolean shape, so a constant "PASS" went unnoticed. + expect(source).not.toMatch(/assertion\([^;]*,\s*["']PASS["']\s*,?\s*\)/u); + expect(source).not.toMatch(/(?:Asserted|AsExpected):\s*["']PASS["']/u); + expect(source).not.toMatch(/verdict\(\s*true\s*\)/u); }); });