Skip to content
Snippets Groups Projects
Commit 1315be6d authored by Shagen Ogandzhanian's avatar Shagen Ogandzhanian
Browse files

For composition unit tests add container to the document

parent 492a5227
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,9 @@ private val testScope = MainScope()
class TestScope : CoroutineScope by testScope {
val root = "div".asHtmlElement()
init {
document.body!!.appendChild(root)
}
fun composition(content: @Composable () -> Unit) {
root.clear()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment