(steps, getValueFunctions)
| 405 | }); |
| 406 | |
| 407 | const checkProgress = (steps, getValueFunctions) => { |
| 408 | if (!Array.isArray(getValueFunctions)) { |
| 409 | getValueFunctions = [getValueFunctions]; |
| 410 | } |
| 411 | for (let i = 0; i < steps; i++) { |
| 412 | const oldValues = getValueFunctions.map((getValue) => getValue()); |
| 413 | runtimeScene.renderAndStep(1000 / 60); |
| 414 | |
| 415 | for (let index = 0; index < oldValues.length; index++) { |
| 416 | expect(getValueFunctions[index]()).not.to.be(oldValues[index]); |
| 417 | } |
| 418 | } |
| 419 | }; |
| 420 | |
| 421 | it('can tween an object variable', () => { |
| 422 | const variable = object.getVariables().get('MyVariable'); |
no test coverage detected