Skip to content

Commit

Permalink
adding JsArray to the test case to check serialization of all JsValue…
Browse files Browse the repository at this point in the history
… objects
  • Loading branch information
ramazanyich committed Nov 2, 2023
1 parent 94d0e4d commit 488577b
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ class JsObjectSerializationSpec extends Specification {
"field1" -> 123,
"field2" -> "abc",
"field3" -> JsNull,
"obj" -> Json.obj("field1" -> 234)
"obj" -> Json.obj("field1" -> 234),
"arr" -> JsArray(
Seq(
JsString("abc"),
JsNumber(123),
JsBoolean(true),
JsNull,
Json.obj("field1" -> 345)
)
)
)

val bos = new ByteArrayOutputStream()
Expand Down

0 comments on commit 488577b

Please sign in to comment.