(id: number, name: string)
| 3 | import type { GraphData, GraphNode } from './types'; |
| 4 | |
| 5 | const node = (id: number, name: string): GraphNode => ({ id, name, qualified_name: `p.${name}`, label: 'Function', x: 0, y: 0, z: 0, size: 1, color: '#fff' }); |
| 6 | const layout: GraphData = { nodes: [node(0, 'unrelated'), node(51, 'selected')], edges: [{ source: 51, target: 0, type: 'CALLS' }], total_nodes: 200 }; |
| 7 | |
| 8 | describe('selected graph identity', () => { |