2015-08-29 20:16:37 +02:00
|
|
|
// Tests for the line element
|
2017-03-05 17:49:12 +01:00
|
|
|
describe('Chart.elements.Line', function() {
|
2019-11-12 19:59:29 +01:00
|
|
|
describe('auto', jasmine.fixture.specs('element.line'));
|
|
|
|
|
2015-10-24 09:23:51 +02:00
|
|
|
it('should be constructed', function() {
|
2015-08-29 20:16:37 +02:00
|
|
|
var line = new Chart.elements.Line({
|
2019-12-31 18:56:15 +01:00
|
|
|
points: [1, 2, 3, 4]
|
2015-08-29 20:16:37 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
expect(line).not.toBe(undefined);
|
2019-12-31 18:56:15 +01:00
|
|
|
expect(line.points).toEqual([1, 2, 3, 4]);
|
2015-08-29 20:16:37 +02:00
|
|
|
});
|
2016-10-16 23:34:59 +02:00
|
|
|
});
|