mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-09-30 04:43:12 +00:00
test(policy): cover AP Jira key title validation
This commit is contained in:
parent
fec0d6c5f0
commit
0d802eae33
1 changed files with 4 additions and 0 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue