mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-08 21:29:07 +02:00
bc11f10216
* Rename elements to mark as elements, i.e. Arc -> ArcElement * Rename RectangleElement to BarElement * Also updates options.elements.rectangle to options.elements.bar
14 lines
350 B
JavaScript
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]);
|
|
});
|
|
});
|