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 1bd2514..4e388cf 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 @@ -27,6 +27,17 @@ test('F6.1 blocks operator mutation through generic Inventory edit DTOs', () => } }); +test('F6.1 rejects legacy Inventory searches that filter by operator snapshot', () => { + const listDto = source('src/asset-master/dto/list-assets-query.dto.ts'); + const treeDto = source('src/asset-master/dto/list-asset-tree-query.dto.ts'); + + for (const dto of [listDto, treeDto]) { + assert.match(dto, /operatorCompanyId\?: string/); + assert.match(dto, /@IsEmpty/); + assert.match(dto, /Filtrá la Operadora mediante la relación temporal del Área/); + } +}); + test('F6.1 resolves temporal Inventory operator from Area relation history', () => { const temporal = source('src/asset-master/asset-temporal.service.ts');