From 0d802eae3300b160121c197289de82c308180d97 Mon Sep 17 00:00:00 2001 From: Adam Moussa Date: Mon, 10 Aug 2026 16:47:37 -0400 Subject: [PATCH] test(policy): cover AP Jira key title validation --- test/pr-policy.test.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/pr-policy.test.mjs b/test/pr-policy.test.mjs index 62942e6..cc25a82 100644 --- a/test/pr-policy.test.mjs +++ b/test/pr-policy.test.mjs @@ -179,6 +179,10 @@ describe('validateTitle', () => { assert.deepEqual(v.validateTitle('docs: add runbook (SEC-7)', false), []); }); + it('accepts AP Jira keys', () => { + assert.deepEqual(v.validateTitle('feat(frontend): scaffold vite spa and ci (AP-4)', false), []); + }); + it('rejects inactive Jira projects (INFRA)', () => { const errs = v.validateTitle('fix: patch (INFRA-1)', false); assert.ok(errs.length > 0, 'INFRA is inactive and should fail');