Skip to content

Commit

Permalink
chore: Fix String Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
wba2hi committed Oct 13, 2023
1 parent 9eb7d15 commit 6c0f5c9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ fun FileSelectorSettingView(
)
Image(
painter = painterResource(id = R.drawable.baseline_upload_file_24),
contentDescription = "Select Certifcate",
contentDescription = "Select Certificate",
modifier = Modifier.constrainAs(imageRef) {
end.linkTo(parent.end)
top.linkTo(parent.top)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,17 @@ class ConnectionInfoTest : BehaviorSpec({

`when`("Trying to de-serialize it") {
tempFile.inputStream().use {
val deserializedConnectionInfo = ConnectionInfoSerializer.readFrom(it)
val deserialized = ConnectionInfoSerializer.readFrom(it)

then("It should be deserialized correctly") {
deserializedConnectionInfo.host shouldBe classUnderTest.host
deserializedConnectionInfo.port shouldBe classUnderTest.port
deserializedConnectionInfo.isTlsEnabled shouldBe classUnderTest.isTlsEnabled
deserializedConnectionInfo.certificate shouldBe classUnderTest.certificate
then("It should be de-serialized correctly") {
deserialized shouldBe classUnderTest
deserialized.host shouldBe classUnderTest.host
deserialized.port shouldBe classUnderTest.port
deserialized.isTlsEnabled shouldBe classUnderTest.isTlsEnabled

deserialized.certificate shouldBe classUnderTest.certificate
deserialized.certificate.uriPath shouldBe classUnderTest.certificate.uriPath
deserialized.certificate.overrideAuthority shouldBe classUnderTest.certificate.overrideAuthority
}
}
}
Expand All @@ -77,10 +81,10 @@ class ConnectionInfoTest : BehaviorSpec({

`when`("Trying to de-serialize it") {
var isExceptionThrown = false
var deserializedConnectionInfo: ConnectionInfo? = null
var deserialized: ConnectionInfo? = null
tempFile.inputStream().use {
try {
deserializedConnectionInfo = ConnectionInfoSerializer.readFrom(it)
deserialized = ConnectionInfoSerializer.readFrom(it)
} catch (_: Exception) {
isExceptionThrown = true
}
Expand All @@ -90,8 +94,8 @@ class ConnectionInfoTest : BehaviorSpec({
isExceptionThrown shouldBe false
}

then("We are falling back to the defaultValue") {
deserializedConnectionInfo shouldBe ConnectionInfoSerializer.defaultValue
then("It is falling back to the defaultValue") {
deserialized shouldBe ConnectionInfoSerializer.defaultValue
}
}
}
Expand Down

0 comments on commit 6c0f5c9

Please sign in to comment.