diff --git a/api-v3/test/unit/f4-multi-act-lifecycle.test.ts b/api-v3/test/unit/f4-multi-act-lifecycle.test.ts index 1e697e8..a06f47e 100644 --- a/api-v3/test/unit/f4-multi-act-lifecycle.test.ts +++ b/api-v3/test/unit/f4-multi-act-lifecycle.test.ts @@ -35,7 +35,7 @@ test('F4 act locking is independent from inspection-wide verification completion test('F4 blocks act header and inventory mutations once the act leaves draft', () => { const updateBody = acts.slice(acts.indexOf(' async update('), acts.indexOf(' async cancel(')); - const cancelBody = acts.slice(acts.indexOf(' async cancel('), acts.indexOf(' async getById(')); + const cancelBody = acts.slice(acts.indexOf(' async cancel('), acts.indexOf(' private actSelect(')); assert.match(updateBody, /this\.assertActDraft\(act\)/); assert.match(cancelBody, /this\.assertActDraft\(act\)/); }); @@ -50,7 +50,7 @@ test('F4 blocks finding creation and editing once the act is locked', () => { assert.match(editableGuard, /INSPECTION_FINDING_ACT_NOT_EDITABLE/); const createBody = findings.slice(findings.indexOf(' async create('), findings.indexOf(' async update(')); - const updateBody = findings.slice(findings.indexOf(' async update('), findings.indexOf(' async updateFollowUp(')); + const updateBody = findings.slice(findings.indexOf(' async update('), findings.indexOf(' async close(')); assert.match(createBody, /this\.assertActEditable\(act, visit\)/); assert.match(updateBody, /this\.assertActEditable\(act, visit\)/); });