Mostrar en español los tipos histológicos de mama

This commit is contained in:
2026-12-04 04:42:24 -06:00
parent cbc41ca365
commit 7167426283
3 changed files with 21 additions and 6 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ describe('bars', () => {
malignancyMeasure: 'grades',
};
const table = bars(mode, (key) => (key === 'types' ? type : classification))!;
expect(table.head).toEqual(['Pacientes', '8500/3', 'Sin biopsia', 'Sin dato', '% maligno']);
expect(table.head).toEqual(['Pacientes', 'Carcinoma ductal infiltrante', 'Sin biopsia', 'Sin dato', '% maligno']);
expect(table.rows[0].cells).toEqual(['2', '1', '0', '1', '1/2 (50.0 %)']);
expect(bars(mode, (key) => (key === 'types' ? type : undefined))!.rows[0].cells.at(-1)).toBe(
'No disponible',
@@ -57,7 +57,7 @@ describe('bars', () => {
() => r,
)!;
expect(table.rows.map((row) => [row.label, ...row.cells])).toEqual([
['8500/3', '1', '25.0 %'],
['Carcinoma ductal infiltrante', '1', '25.0 %'],
['Sin dato', '3', '75.0 %'],
]);
});