Skip to content

Commit

Permalink
Fix the names in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-lee committed Aug 23, 2024
1 parent 29964a0 commit 805f19a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ trait networkSpec {

def testEncoderUrl: Property =
for {
uri <- networkGens.genUrlString.log("uri")
url <- networkGens.genUrlString.log("url")
} yield {
val input = Url.unsafeFrom(uri)
val input = Url.unsafeFrom(url)

val expected = uri.asJson
val expected = url.asJson
val actual = input.asJson

Result.all(
Expand All @@ -91,12 +91,12 @@ trait networkSpec {

def testDecoderUrl: Property =
for {
uri <- networkGens.genUrlString.log("uri")
url <- networkGens.genUrlString.log("url")
} yield {

val input = uri.asJson
val input = url.asJson

val expected = Url.from(uri)
val expected = Url.from(url)
val actual = decode[Url](input.noSpaces)

actual ==== expected
Expand Down

0 comments on commit 805f19a

Please sign in to comment.