test(f6.1): block legacy operator snapshot search contracts

This commit is contained in:
2026-09-09 15:29:06 -03:00
parent a7cc9e0886
commit c454eb3255
@@ -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');