(anims, props)
| 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({ |
no test coverage detected