fix(test): update security test to expect 7 VALID_RELATION_TYPES (added HAS_PROPERTY)

This commit is contained in:
Gergo Magyar 2026-03-18 10:07:22 +00:00
parent 523178cefe
commit df0018042c

View file

@ -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);
});