MCPcopy
hub / github.com/chartjs/Chart.js / animationsExpectations

Function animationsExpectations

test/specs/core.datasetController.tests.js:1069–1079  ·  test/specs/core.datasetController.tests.js::animationsExpectations
(anims, props)

Source from the content-addressed store, hash-verified

1067
1068 describe(class="st">'_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(class="st">'"' + name + class="st">'" of ' + JSON.stringify(anim)).toEqual(value);
1076 }
1077 }
1078 }
1079 }
1080
1081 it(class="st">'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