(steps, getValueFunctions)
| 188 | }); |
| 189 | |
| 190 | const checkProgress = (steps, getValueFunctions) => { |
| 191 | if (!Array.isArray(getValueFunctions)) { |
| 192 | getValueFunctions = [getValueFunctions]; |
| 193 | } |
| 194 | for (let i = 0; i < steps; i++) { |
| 195 | const oldValues = getValueFunctions.map((getValue) => getValue()); |
| 196 | runtimeScene.renderAndStep(1000 / 60); |
| 197 | |
| 198 | for (let index = 0; index < oldValues.length; index++) { |
| 199 | expect(getValueFunctions[index]()).not.to.be(oldValues[index]); |
| 200 | } |
| 201 | } |
| 202 | }; |
| 203 | |
| 204 | it('can tween an object variable', () => { |
| 205 | const variable = object.getVariables().get('MyVariable'); |
no test coverage detected