Сохранили цвет сияющих связей V3

This commit is contained in:
AidarKC
2026-11-11 00:56:37 +03:00
parent e7f6e0580c
commit 84f2400bef
3 changed files with 14 additions and 4 deletions
@@ -121,3 +121,13 @@ test('V3: взаимная связь сохраняет оба типа для
assert.equal(edge.reverseRelationType, 'close_friend');
assert.equal(edge.mutual, true);
});
test('V3: сияние не стирает тип связи у красно-синего перехода', () => {
const g = createExplorerGraph();
g.add(friends('a', ['b'], [], [], [['a', true], ['b', true]]));
g.add(friends('b', [], ['a'], [], [['a', true], ['b', true]]));
const edge = find(g.snapshot('a', { depth: 0 }), 'b').edgeParents[0];
assert.equal(edge.relationType, 'friend');
assert.equal(edge.reverseRelationType, 'close_friend');
assert.equal(find(g.snapshot('a', { depth: 0 }), 'b').shining, true);
});