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