From 7388aa3196593add5aadcbfc018725329931677a Mon Sep 17 00:00:00 2001 From: enlineawork Date: Thu, 10 Sep 2026 18:20:52 -0300 Subject: [PATCH] test(F6.1): match canonical cancellation lifecycle constants --- api-v3/test/unit/f6-1-operator-cancellation-ux.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api-v3/test/unit/f6-1-operator-cancellation-ux.test.ts b/api-v3/test/unit/f6-1-operator-cancellation-ux.test.ts index 0a0778e..42f2f9f 100644 --- a/api-v3/test/unit/f6-1-operator-cancellation-ux.test.ts +++ b/api-v3/test/unit/f6-1-operator-cancellation-ux.test.ts @@ -39,6 +39,6 @@ test('F6.1 WEB cancellation requires an explicit audited reason and is available assert.match(controller, /@Post\(':id\/cancel'\)/); assert.match(dto, /@MinLength\(10\)/); assert.match(dto, /@MaxLength\(4000\)/); - assert.match(lifecycle, /\['DRAFT','PLANNED','IN_PROGRESS'\]/); - assert.match(lifecycle, /INSPECTION_HAS_SEALED_ACT/); + assert.match(lifecycle, /\[InspectionVisitStatus\.DRAFT, InspectionVisitStatus\.PLANNED, InspectionVisitStatus\.IN_PROGRESS\]\.includes\(visit\.status\)/); + assert.match(lifecycle, /INSPECTION_WITH_SEALED_ACT_CANNOT_CANCEL/); });