From df0018042c185d3e902a0d8177137251c3e3d74a Mon Sep 17 00:00:00 2001 From: Gergo Magyar Date: Wed, 18 Mar 2026 10:07:22 +0000 Subject: [PATCH] fix(test): update security test to expect 7 VALID_RELATION_TYPES (added HAS_PROPERTY) --- gitnexus/test/unit/security.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gitnexus/test/unit/security.test.ts b/gitnexus/test/unit/security.test.ts index f4344c37d..7a3ffd1ab 100644 --- a/gitnexus/test/unit/security.test.ts +++ b/gitnexus/test/unit/security.test.ts @@ -96,13 +96,14 @@ describe('isWriteQuery', () => { // ─── Relation type allowlist ────────────────────────────────────────── describe('VALID_RELATION_TYPES', () => { - it('contains exactly the expected 6 types', () => { - expect(VALID_RELATION_TYPES.size).toBe(6); + it('contains exactly the expected 7 types', () => { + expect(VALID_RELATION_TYPES.size).toBe(7); expect(VALID_RELATION_TYPES.has('CALLS')).toBe(true); expect(VALID_RELATION_TYPES.has('IMPORTS')).toBe(true); expect(VALID_RELATION_TYPES.has('EXTENDS')).toBe(true); expect(VALID_RELATION_TYPES.has('IMPLEMENTS')).toBe(true); expect(VALID_RELATION_TYPES.has('HAS_METHOD')).toBe(true); + expect(VALID_RELATION_TYPES.has('HAS_PROPERTY')).toBe(true); expect(VALID_RELATION_TYPES.has('OVERRIDES')).toBe(true); });