/
githubmirror
/
Chart.js
Обзор
Документация
Войти
/
githubmirror
/
Chart.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/specs/element.line.tests.js
35 строк
889 B
Jukka Kurkela
Update eslint-config-chartjs to v0.3.0 (#8406)
10 фев 2021, 16:21
Не верифицирован
10 фев 2021, 16:21
ddfbcf7
Код
Авторство
О чём код?
// 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]); }); it('should not cache path when animations are enabled', function(done) { var chart = window.acquireChart({ type: 'line', data: { datasets: [{ data: [0, -1, 0], label: 'dataset1', }], labels: ['label1', 'label2', 'label3'] }, options: { animation: { duration: 50, onComplete: () => { expect(chart.getDatasetMeta(0).dataset._path).toBeUndefined(); done(); } } } }); }); });