Skip to content

Commit

Permalink
fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssaruth committed Aug 17, 2024
1 parent 48d56f6 commit c292aed
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions client/src/test/kotlin/util/UpdateManagerTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import com.github.alyssaburlton.swingtest.findWindow
import com.github.alyssaburlton.swingtest.flushEdt
import com.github.alyssaburlton.swingtest.getChild
import com.github.alyssaburlton.swingtest.shouldNotBeVisible
import io.kotest.matchers.ints.shouldBeGreaterThan
import io.kotest.matchers.shouldBe
import io.kotest.matchers.shouldNotBe
import io.kotest.matchers.string.shouldContain
Expand Down Expand Up @@ -97,13 +98,7 @@ class UpdateManagerTest : AbstractTest() {

val version = responseJson.getString("tag_name")
version.shouldStartWith("v")
responseJson.getJSONArray("assets").length() shouldBe 1

val asset = responseJson.getJSONArray("assets").getJSONObject(0)
asset.getLong("id") shouldNotBe null
asset.getString("name") shouldStartWith "Dartzee"
asset.getString("name") shouldEndWith ".jar"
asset.getLong("size") shouldNotBe null
responseJson.getJSONArray("assets").length() shouldBeGreaterThan 0
}

/** Parsing */
Expand Down

0 comments on commit c292aed

Please sign in to comment.