Chart.js/test/specs/element.line.tests.js
Evert Timberg bc11f10216
Rename elements to mark as elements, i.e. Arc -> ArcElement (#7924)
* Rename elements to mark as elements, i.e. Arc -> ArcElement
* Rename RectangleElement to BarElement
* Also updates options.elements.rectangle to options.elements.bar
2020-10-20 08:18:56 -04:00

14 lines
350 B
JavaScript

// Tests for the line element
describe('Chart.elements.LineElement', function() {
describe('auto', jasmine.fixture.specs('element.line'));
it('should be constructed', function() {
var line = new Chart.elements.LineElement({
points: [1, 2, 3, 4]
});
expect(line).not.toBe(undefined);
expect(line.points).toEqual([1, 2, 3, 4]);
});
});