diff options
Diffstat (limited to 'src/test/scala/cc/spray/json/CompactPrinterSpec.scala')
-rw-r--r-- | src/test/scala/cc/spray/json/CompactPrinterSpec.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/scala/cc/spray/json/CompactPrinterSpec.scala b/src/test/scala/cc/spray/json/CompactPrinterSpec.scala index a517cd1..4ca4aac 100644 --- a/src/test/scala/cc/spray/json/CompactPrinterSpec.scala +++ b/src/test/scala/cc/spray/json/CompactPrinterSpec.scala @@ -43,6 +43,9 @@ class CompactPrinterSpec extends Specification { CompactPrinter(JsArray(JsNull, JsNumber(1.23), JsObject(JsField("key", true)))) mustEqual """[null,1.23,{"key":true}]""" ) + "properly print a JSON padding (JSONP) if requested" in { + CompactPrinter(JsTrue, Some("customCallback")) mustEqual("customCallback(true)") + } } }
\ No newline at end of file |