UNPKG

light-chart

Version:

Charts for mobile visualization.

22 lines (17 loc) 449 B
const expect = require('chai').expect; const Shape = require('../../../src/graphic/shape'); describe('Shape', function() { const s = new Shape({ className: 'shape' }); it('constructor', function() { expect(s.isShape()).to.be.true; expect(s.isVisible()).to.be.true; }); it('calculateBox', function() { expect(s.calculateBox()).to.be.null; }); it('getBBox', function() { expect(s.getBBox()).to.be.null; }); });