INNER CODE UNIT · Kotlin
init
ChuckerTeam/chucker · library/src/androidTest/kotlin/com/chuckerteam/chucker/SpanUtilTest.kt:26
public fun init() {
context = InstrumentationRegistry.getInstrumentation().context
}
@SuppressLint("CheckResult")
@Test
public fun json_can_have_null_value() {
val parsedJson =
SpanTextUtil(context).spanJson(
"""{ "field": null }""",
)
Assert.assertEquals(
parsedJson.toString(),
"""
{
"field": null
}
""".trimIndent(),