Mostrar en español los tipos histológicos de mama
This commit is contained in:
@@ -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 %'],
|
||||
]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user