fix: resolve blocker PR validation regressions

This commit is contained in:
Affaan Mustafa
2026-03-25 01:34:29 -04:00
parent 1d0aa5ac2a
commit 00bc7f30be
3 changed files with 4 additions and 4 deletions

View File

@@ -335,8 +335,8 @@ async function runTests() {
}
const combined = stderr.join('');
assert.ok(combined.includes('\"eventType\":\"hook_input_truncated\"'), 'Should emit truncation event');
assert.ok(combined.includes('\"sizeLimitBytes\":1024'), 'Should record the truncation limit');
assert.ok(combined.includes('"eventType":"hook_input_truncated"'), 'Should emit truncation event');
assert.ok(combined.includes('"sizeLimitBytes":1024'), 'Should record the truncation limit');
assert.ok(!combined.includes('rm -rf /tmp/important'), 'Should not leak raw command text to governance logs');
})) passed += 1; else failed += 1;
if (await test('run() can detect multiple event types in one input', async () => {