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

14 lines
336 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({
points: [1, 2, 3, 4]
});
expect(line).not.toBe(undefined);
expect(line.points).toEqual([1, 2, 3, 4]);
});
});