#49 feat: gráficos de provenance (proveedores-organizaciones y territorios) en el resumen público

This commit is contained in:
2026-08-15 17:27:53 -05:00
parent efa666dcb3
commit 4ecfb64118
13 changed files with 725 additions and 14 deletions

View File

@@ -87,4 +87,14 @@ describe('toCytoscapeElements', () => {
expect(elements[0].data.entity).toEqual({ name: 'Panela', price: 3000 })
})
it('agrega la clase has-image a los nodos con imagen', () => {
const withImage = [
{ id: 'product:1', kind: 'product', label: 'Panela', image: 'http://x/panela.jpg' },
]
const layout = computeColumnLayout(withImage, [], { columnOf, columnWidth: 200, rowHeight: 80, padding: 20 })
const elements = toCytoscapeElements(layout)
expect(elements[0].classes).toContain('has-image')
})
})