Skip to content

Commit

Permalink
viewmodel creates viewitem parallel structure
Browse files Browse the repository at this point in the history
  • Loading branch information
vextorspace committed Jul 26, 2024
1 parent e3ea91f commit ebbd7b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions composeApp/src/commonTest/kotlin/viewmodel/ViewItemTest.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package viewmodel

import io.kotest.matchers.collections.shouldContainAll
import io.kotest.matchers.equals.shouldBeEqual
import io.kotest.matchers.nulls.shouldNotBeNull
import io.kotest.matchers.types.shouldBeInstanceOf
Expand All @@ -24,7 +25,12 @@ class ViewItemTest {
val viewItem: ViewItem = viewModel.viewRoot()

viewItem.subItems.size.shouldBeEqual(viewModel.item.subItems.size)
viewItem.subItems
.map { it.item }
.shouldContainAll(viewModel.item.subItems)
}




}

0 comments on commit ebbd7b5

Please sign in to comment.