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 5a4f56d commit c7dfbd5
Showing 1 changed file with 1 addition and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ class ItemReconstitutesFromJsonTest {
val itemJson = """
{
"content": "$content",
"id": "$id",
"subItems": []
"id": "$id"
}
"""

Expand All @@ -39,34 +38,4 @@ class ItemReconstitutesFromJsonTest {
item shouldBe Item(content, mutableListOf(), id)
item!!.subItems.shouldBeEmpty()
}

@Test
fun `Item with subItems reconstitutes`() {
// Given
val id = "::SOME_UUID::"
val content = "::ITEM CONTENT::"
val subItemContent = "::SUB ITEM CONTENT::"
val subId = "::SUB_UUID::"

val subItemJson = """
{
"content": "$subItemContent",
"id": "$subId"
}
"""
val itemJson = """
{
"content": "$content",
"id": "$id",
"subItems": [$subItemJson]
}
"""

// When
val item = Item.fromJson(itemJson)

// Then
item shouldBe Item(content, mutableListOf(Item(subItemContent, mutableListOf(), subId)), id)
}

}

0 comments on commit c7dfbd5

Please sign in to comment.