MCPcopy Index your code
hub / github.com/4ian/GDevelop / checkProgress

Function checkProgress

Extensions/TweenBehavior/tests/TweenBehavior.spec.js:407–419  ·  view source on GitHub ↗
(steps, getValueFunctions)

Source from the content-addressed store, hash-verified

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');

Callers 1

Calls 3

renderAndStepMethod · 0.80
getValueFunction · 0.50
mapMethod · 0.45

Tested by

no test coverage detected