mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 20:59:08 +02:00
16 lines
397 B
JavaScript
16 lines
397 B
JavaScript
// Tests for the line element
|
|
describe('Chart.elements.Line', function() {
|
|
describe('auto', jasmine.fixture.specs('element.line'));
|
|
|
|
it('should be constructed', function() {
|
|
var line = new Chart.elements.Line({
|
|
_datasetindex: 2,
|
|
_points: [1, 2, 3, 4]
|
|
});
|
|
|
|
expect(line).not.toBe(undefined);
|
|
expect(line._datasetindex).toBe(2);
|
|
expect(line._points).toEqual([1, 2, 3, 4]);
|
|
});
|
|
});
|