test(F6.1): match canonical cancellation lifecycle constants
This commit is contained in:
@@ -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(controller, /@Post\(':id\/cancel'\)/);
|
||||||
assert.match(dto, /@MinLength\(10\)/);
|
assert.match(dto, /@MinLength\(10\)/);
|
||||||
assert.match(dto, /@MaxLength\(4000\)/);
|
assert.match(dto, /@MaxLength\(4000\)/);
|
||||||
assert.match(lifecycle, /\['DRAFT','PLANNED','IN_PROGRESS'\]/);
|
assert.match(lifecycle, /\[InspectionVisitStatus\.DRAFT, InspectionVisitStatus\.PLANNED, InspectionVisitStatus\.IN_PROGRESS\]\.includes\(visit\.status\)/);
|
||||||
assert.match(lifecycle, /INSPECTION_HAS_SEALED_ACT/);
|
assert.match(lifecycle, /INSPECTION_WITH_SEALED_ACT_CANNOT_CANCEL/);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user