test(F6.1): match canonical cancellation lifecycle constants

This commit is contained in:
2026-09-10 18:20:52 -03:00
parent 77ec954067
commit 7388aa3196
@@ -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/);
});