| 360 | |
| 361 | it('keeps the whole graph on screen while the first scope picture is still empty', () => { |
| 362 | const graph = (count: number): GraphData => ({ nodes: Array.from({ length: count }, (_, id) => ({ id, name: `n${id}`, label: 'Function', x: 0, y: 0, z: 0, size: 1, color: '#999999' })), edges: [], total_nodes: count }); |
| 363 | const layout = graph(5), stale = graph(2), current = graph(3), empty = graph(0); |
| 364 | // An empty preview of a symbol outside the loaded layout is no picture. |
| 365 | expect(scenePictureFor(empty, undefined, layout)).toBe(layout); |