Skip to content

Commit

Permalink
ItemWorkflow contains destination item
Browse files Browse the repository at this point in the history
  • Loading branch information
vextorspace committed Jul 13, 2024
1 parent c4a71b8 commit dd501a6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composeApp/src/commonMain/kotlin/model/ItemWorkflow.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package model
import kotlinx.serialization.Serializable

@Serializable
class ItemWorkflow {
data class ItemWorkflow(val destination: Item) {


}
20 changes: 20 additions & 0 deletions composeApp/src/commonTest/kotlin/model/ItemWorkflowTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package model

import io.kotest.matchers.types.shouldBeInstanceOf
import kotlin.test.Test

class ItemWorkflowTest {

@Test
fun `ItemWorkflow contains destination item`() {
// Given
val destinationItem = Item()
val itemWorkflow = ItemWorkflow(destinationItem)

// When
val destination = itemWorkflow.destination

// Then
destination.shouldBeInstanceOf<Item>()
}
}

0 comments on commit dd501a6

Please sign in to comment.