Box figure spec reading carries its strata
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user