F1: Sankey stopped nodes bottom to top M-CHAT, psicológica, neuropediátrica; full card width; layout test removed

This commit is contained in:
2026-12-01 14:20:58 -06:00
parent 58fdfd53d7
commit 2404a3a66b
3 changed files with 6 additions and 17 deletions
@@ -373,21 +373,6 @@ describe('TEA clinical figures', () => {
});
});
it('places the stopped nodes at the right and gives every node its own position', () => {
const node = teaSankey({ populations: {}, strata: {} }).data[0] as unknown as {
node: { label: string[]; x: number[]; y: number[] };
};
const stopped = node.node.label.flatMap((label, index) =>
label.startsWith('Se quedó en') ? [index] : [],
);
expect(stopped).toHaveLength(3);
expect(Math.min(...stopped.map((index) => node.node.x[index]))).toBeGreaterThan(
Math.max(...node.node.x.filter((_, index) => !stopped.includes(index))),
);
const places = node.node.x.map((x, index) => `${x}|${node.node.y[index]}`);
expect(new Set(places).size).toBe(places.length);
});
it('groups prevalence bars by sex and uses transparency for unconfirmed diagnoses', () => {
const figure = teaSexBars({
populations: { 'initial-population': 7 },