From 5a4f56d3229df43f38776bfa62ec1df2148cf0b9 Mon Sep 17 00:00:00 2001 From: Douglas Ronne Date: Sat, 27 Jul 2024 14:34:51 -0400 Subject: [PATCH] removed test that no longer applies --- .../kotlin/model/ItemSavesToJsonTest.kt | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/composeApp/src/commonTest/kotlin/model/ItemSavesToJsonTest.kt b/composeApp/src/commonTest/kotlin/model/ItemSavesToJsonTest.kt index 68da8c7..1f58c2c 100644 --- a/composeApp/src/commonTest/kotlin/model/ItemSavesToJsonTest.kt +++ b/composeApp/src/commonTest/kotlin/model/ItemSavesToJsonTest.kt @@ -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 - } } \ No newline at end of file