From 38f633c2da1544dc580cf2e0bb12c7aec2f8a51f Mon Sep 17 00:00:00 2001 From: alberto Date: Thu, 3 Dec 2026 21:13:24 -0600 Subject: [PATCH] Record test finds the unmeasured metric's lines wherever the ADOS-2 section follows --- src/app/paciente/tea-patient.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/paciente/tea-patient.spec.ts b/src/app/paciente/tea-patient.spec.ts index 8b80cf6..6bd2efd 100644 --- a/src/app/paciente/tea-patient.spec.ts +++ b/src/app/paciente/tea-patient.spec.ts @@ -439,7 +439,8 @@ describe('Expediente TEA', () => { expect(blocks?.[0].charts).toHaveLength(2); expect(blocks?.[1].charts).toEqual([]); const content = teaPdfContent('Expediente TEA', sections, ['mapa', 'norma']); - expect(content.slice(-2)).toEqual(['z · —', 'Resultado · No evaluable · sin husos']); + const at = content.indexOf('z · —'); + expect(content.slice(at, at + 2)).toEqual(['z · —', 'Resultado · No evaluable · sin husos']); }); it('lee los motivos de la métrica y del estudio desde FHIR', async () => {