diff --git a/tests/test_core/test_layout.py b/tests/test_core/test_layout.py index 1d10a1ba5..0ce9217e2 100644 --- a/tests/test_core/test_layout.py +++ b/tests/test_core/test_layout.py @@ -6,10 +6,16 @@ import pytest import idom +from idom.core.layout import LayoutUpdate from tests.general_utils import assert_same_items, HookCatcher +def test_layout_update_create_from_apply_to(): + update = LayoutUpdate.create_from({"a": 1, "b": [1]}, {"a": 2, "b": [1, 2]}) + assert update.apply_to({"a": 1, "b": [1]}) == {"a": 2, "b": [1, 2]} + + def test_layout_repr(): @idom.element def MyElement():