Box figure spec reading carries its strata

This commit is contained in:
2026-12-03 13:58:25 -06:00
parent 477c4a07d8
commit 06239e726d
+1 -1
View File
@@ -400,7 +400,7 @@ describe('TEA clinical figures', () => {
}); });
it('annotates only the median and the quartiles on the box', () => { it('annotates only the median and the quartiles on the box', () => {
const figure = boxFigure({ populations: {}, score: 12.5, low: 8, high: 20 }, '2025-S1'); const figure = boxFigure({ populations: {}, strata: {}, score: 12.5, low: 8, high: 20 }, '2025-S1');
expect(figure.layout?.annotations?.map((a) => a.text)).toEqual([ expect(figure.layout?.annotations?.map((a) => a.text)).toEqual([
'Q3 20', 'Q3 20',
'Mediana 12.5', 'Mediana 12.5',