MCPcopy Create free account
hub / github.com/chartjs/Chart.js / animationsExpectations

Function animationsExpectations

test/specs/core.datasetController.tests.js:1069–1079  ·  view source on GitHub ↗
(anims, props)

Source from the content-addressed store, hash-verified

1067
1068 describe('_resolveAnimations', function() {
1069 function animationsExpectations(anims, props) {
1070 for (const [prop, opts] of Object.entries(props)) {
1071 const anim = anims._properties.get(prop);
1072 expect(anim).withContext(prop).toBeInstanceOf(Object);
1073 if (anim) {
1074 for (const [name, value] of Object.entries(opts)) {
1075 expect(anim[name]).withContext('"' + name + '" of ' + JSON.stringify(anim)).toEqual(value);
1076 }
1077 }
1078 }
1079 }
1080
1081 it('should resolve to empty Animations when globally disabled', function() {
1082 const chart = acquireChart({

Callers 1

Calls 1

getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…