From 2c1fdf7fb272a9e29b06924696a772787d651dc7 Mon Sep 17 00:00:00 2001 From: enlineawork Date: Tue, 8 Sep 2026 10:00:24 -0300 Subject: [PATCH] test(f4): make lifecycle source boundaries deterministic --- api-v3/test/unit/f4-multi-act-lifecycle.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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\)/); });