UNPKG

@d3fc/d3fc-series

Version:

A collection of components for rendering data series to SVG and canvas, including line, bar, OHLC, candlestick and more

26 lines (24 loc) 1.03 kB
import jsdom from 'jsdom'; describe('bundle', function() { it('should corectly wire-up all the dependencies via their UMD-exposed globals', function(done) { jsdom.env({ html: '<html></html>', virtualConsole: jsdom.createVirtualConsole().sendTo({ error: done }), scripts: [ require.resolve('d3/dist/d3.js'), require.resolve('../node_modules/@d3fc/d3fc-shape/build/d3fc-shape.js'), require.resolve('../node_modules/@d3fc/d3fc-data-join/build/d3fc-data-join.js'), require.resolve('../node_modules/@d3fc/d3fc-rebind/build/d3fc-rebind.js'), require.resolve('../build/d3fc-series.js') ], done: (_, win) => { // simple exercise a code-path that includes all the dependencies var svgLine = win.fc.seriesSvgLine(); expect(svgLine).not.toBeUndefined(); done(); } }); }); });