From d2b955c9d976e0dca830de9063a78b559a2acac7 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 4 Mar 2018 23:49:05 +0100 Subject: Fix incorrect test dependencies. --- src/test/kotlin/test/pl/treksoft/kvision/KVManagerSpec.kt | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/test') diff --git a/src/test/kotlin/test/pl/treksoft/kvision/KVManagerSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/KVManagerSpec.kt index 08ca430f..1eca5f5e 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/KVManagerSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/KVManagerSpec.kt @@ -40,7 +40,6 @@ class KVManagerSpec : DomSpec { style = snStyle(listOf("fontWeight" to "bold", "fontStyle" to "italic")) }) KVManager.patch("test", vnode) - assertTrue("Original child should not exist") { document.getElementById("test") == null } assertTrue("New child should exist") { document.getElementById("test_new") != null } } } @@ -58,8 +57,6 @@ class KVManagerSpec : DomSpec { style = snStyle(listOf("fontWeight" to "bold", "fontStyle" to "italic")) }) KVManager.patch(vnode2, vnode3) - assertTrue("First child should not exist") { document.getElementById("test") == null } - assertTrue("Second child should not exist") { document.getElementById("test2") == null } assertTrue("Third child should exist") { document.getElementById("test3") != null } } } @@ -69,7 +66,6 @@ class KVManagerSpec : DomSpec { run { val node = KVManager.virtualize("

Virtual node

") KVManager.patch("test", node) - assertTrue("Original child should not exist") { document.getElementById("test") == null } val v = document.getElementById("virtual") assertTrue("New child should exist") { v != null } assertTrue("New child should have one child") { v?.children?.length == 1 } -- cgit