Skip to content

Commit

Permalink
removed test that no longer applies
Browse files Browse the repository at this point in the history
  • Loading branch information
vextorspace committed Jul 27, 2024
1 parent a032295 commit 5a4f56d
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions composeApp/src/commonTest/kotlin/model/ItemSavesToJsonTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,4 @@ class ItemSavesToJsonTest {
""".trimIndent()
itemJson shouldEqualJson expectedJson
}

@Test
fun `nested items save to json`() {
// Given
val content = "::ITEM CONTENT::"
val id = "::SOME_UUID::"
val subItemContent = "::SUB ITEM CONTENT::"
val subItemId = "::SUB ITEM UUID::"
val subItem = Item(subItemContent, mutableListOf(), subItemId)
val item = Item(content, mutableListOf(subItem), id)

// When
val itemJson = item.toJson()

// Then
val expectedJson = """
{
"content": "$content",
"id": "$id",
"subItems": [
{
"content": "$subItemContent",
"id": "$subItemId"
}
]
}
""".trimIndent()
itemJson shouldEqualJson expectedJson
}
}

0 comments on commit 5a4f56d

Please sign in to comment.