/
githubmirror
/
Chart.js
Обзор
Документация
Войти
/
githubmirror
/
Chart.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/specs/core.element.tests.js
16 строк
673 B
Jukka Kurkela
Update eslint-config-chartjs to v0.3.0 (#8406)
10 фев 2021, 16:21
Не верифицирован
10 фев 2021, 16:21
ddfbcf7
Код
Авторство
О чём код?
describe('Chart.element', function() { describe('getProps', function() { it('should return requested properties', function() { const elem = new Chart.Element(); elem.x = 10; elem.y = 1.5; expect(elem.getProps(['x', 'y'])).toEqual(jasmine.objectContaining({x: 10, y: 1.5})); expect(elem.getProps(['x', 'y'], true)).toEqual(jasmine.objectContaining({x: 10, y: 1.5})); elem.$animations = {x: {active: () => true, _to: 20}}; expect(elem.getProps(['x', 'y'])).toEqual(jasmine.objectContaining({x: 10, y: 1.5})); expect(elem.getProps(['x', 'y'], true)).toEqual(jasmine.objectContaining({x: 20, y: 1.5})); }); }); });