(active: number)
| 42 | const steps = [{ edge: { id: 7, source: 2, target: 1, type: 'CALLS' }, from: 1, to: 2 }, |
| 43 | { edge: { id: 8, source: 1, target: 3, type: 'INHERITS' }, from: 1, to: 3 }]; |
| 44 | const render = (active: number) => act(async () => root.render(<PathSteps heading="Path" steps={steps} active={active} |
| 45 | nameOf={id => names.get(id)!} lines={false} onStep={onStep} onClear={onClear} />)); |
| 46 | await render(0); |
| 47 | expect([...host.querySelectorAll('li code')].map(entry => entry.textContent)) |
| 48 | .toEqual(['JSONBAgg <--CALLS-- test_jsonb_agg', 'JSONBAgg --INHERITS--> Aggregate']); |
no test coverage detected