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:/);