Modernize generated JS tests

This commit is contained in:
Nick Gerleman
2022-12-24 00:35:10 -08:00
parent 0f67a0a458
commit 014986e9da
27 changed files with 9213 additions and 9214 deletions

View File

@@ -6,13 +6,13 @@
*/
it("dont_measure_single_grow_shrink_child", function () {
var root = Yoga.Node.create();
const root = Yoga.Node.create();
root.setWidth(100);
root.setHeight(100);
var measureCounter = getMeasureCounter(Yoga, null, 100, 100);
const measureCounter = getMeasureCounter(Yoga, null, 100, 100);
var root_child0 = Yoga.Node.create();
const root_child0 = Yoga.Node.create();
root_child0.setMeasureFunc(measureCounter.inc);
root_child0.setFlexGrow(1);
root_child0.setFlexShrink(1);