assert dimensions too

This commit is contained in:
Dmitry Ivakhnenko
2023-01-26 18:07:27 +03:00
parent dcaef932dd
commit b1694ce5f7

View File

@@ -51,5 +51,14 @@ test("dont_fail_with_incomplete_measure_dimensions", () => {
expect(widthOnlyCallback.get()).toBe(1);
expect(emptyCallback.get()).toBe(1);
expect(node1.getComputedWidth()).toBe(100);
expect(node1.getComputedHeight()).toBe(10);
expect(node2.getComputedWidth()).toBe(100);
expect(node2.getComputedHeight()).toBe(0);
expect(node3.getComputedWidth()).toBe(100);
expect(node3.getComputedHeight()).toBe(0);
root.freeRecursive();
});