Files
WebApp/src/app/plotly-bundle.spec.ts
T
alberto 56d1ef2e8a WebApp shared: Plotly partial bundle, card actions, print report, export module
Plotly partial bundle (bar, scatter, box, pie, sankey, contour) replacing the cartesian dist; card-actions (published Measure definitions, settings, Volver); Descargar reporte with a print stylesheet; export module: xlsx with frozen header, autofilter, Parámetros sheet and 5,000-row cap, pdfmake documents with header/footer, allRows following next links, file names without patient identifiers; lazy-loaded export libraries.

Checks on milkpc (node:22): npm ci, ng build (initial 567 kB / 134 kB transfer), ng test 7 files passed.
2026-11-30 13:36:35 -06:00

10 lines
380 B
TypeScript

import { describe, expect, it } from 'vitest';
import { TRACES } from './plotly-bundle';
describe('Plotly partial bundle', () => {
it('registers the Sankey and contour traces', () => {
const names = TRACES.map((trace) => (trace as { name?: string }).name);
expect(names).toEqual(expect.arrayContaining(['sankey', 'contour', 'bar', 'scatter', 'box', 'pie']));
});
});