Chart.js/test/specs/element.line.tests.js

16 lines
397 B
JavaScript
Raw Normal View History

// 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]);
});
});