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

Function animationsExpectations

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

Source from the content-addressed store, hash-verified

1088
1089 describe('_resolveAnimations', function() {
1090 function animationsExpectations(anims, props) {
1091 for (const [prop, opts] of Object.entries(props)) {
1092 const anim = anims._properties.get(prop);
1093 expect(anim).withContext(prop).toBeInstanceOf(Object);
1094 if (anim) {
1095 for (const [name, value] of Object.entries(opts)) {
1096 expect(anim[name]).withContext('"' + name + '" of ' + JSON.stringify(anim)).toEqual(value);
1097 }
1098 }
1099 }
1100 }
1101
1102 it('should resolve to empty Animations when globally disabled', function() {
1103 const chart = acquireChart({

Callers 1

Calls 1

getMethod · 0.65

Tested by

no test coverage detected