Skip to content

Commit

Permalink
Update EitherDeserializerTest.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Oct 8, 2023
1 parent 1c2db2b commit 78628f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class EitherDeserializerTest extends DeserializerTest with EitherJsonTestSupport
}

it should "be able to deserialize left with string" in {
val typeRef = new TypeReference[Either[_, String]] {}
val typeRef = new TypeReference[Either[String, _]] {}
deserialize(s"""{"l":"$str"}""", typeRef) should be (Left(str))
deserialize(s"""{"left":"$str"}""", typeRef) should be (Left(str))
}
Expand Down

0 comments on commit 78628f6

Please sign in to comment.