From 1dd424698a3107c9596fdd101b82798a7ae80a35 Mon Sep 17 00:00:00 2001 From: enlineawork Date: Wed, 9 Sep 2026 17:36:04 -0300 Subject: [PATCH] test(f6.1): require build-safe active operator fallback --- api-v3/test/unit/f6-1-operational-context-consistency.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-v3/test/unit/f6-1-operational-context-consistency.test.ts b/api-v3/test/unit/f6-1-operational-context-consistency.test.ts index 0349fc4..15ce478 100644 --- a/api-v3/test/unit/f6-1-operational-context-consistency.test.ts +++ b/api-v3/test/unit/f6-1-operational-context-consistency.test.ts @@ -95,7 +95,7 @@ test('F6.1 WEB derives the creation snapshot from the active Area operator and r assert.doesNotMatch(editor, /updateAsset\(id, \{[^}]*operatorCompanyId/); assert.doesNotMatch(editor, /parent\.operatorCompany/); assert.match(editor, /listCompaniesForArea\(operationalAreaId\)\.then\(\(loadedCompanies\)/); - assert.match(editor, /loadedCompanies\.length === 1 \? loadedCompanies\[0\]\.id : ''/); + assert.match(editor, /loadedCompanies\.length === 1 \? \(loadedCompanies\[0\]\?\.id \?\? ''\) : ''/); assert.match(editor, /Snapshot histórico de alta/); assert.match(contextPanel, /Cambiar contexto físico/); assert.doesNotMatch(contextPanel, /operatorCompanyId:/);