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