Skip to content

Commit d30f9c7

Browse files
committed
Update Kotlin test to use asJsonBool() for post type supports
1 parent eecfd65 commit d30f9c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

native/kotlin/api/kotlin/src/integrationTest/kotlin/PostTypesEndpointTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class PostTypesEndpointTest {
2626
val postTypesPost = client.request { requestBuilder ->
2727
requestBuilder.postTypes().retrieveWithEditContext(PostType.Post)
2828
}.assertSuccessAndRetrieveData().data
29-
assert(postTypesPost.supports.map[PostTypeSupports.Title]!!)
29+
assert(postTypesPost.supports.map[PostTypeSupports.Title]!!.asJsonBool()!!)
3030
assertFalse(postTypesPost.capabilities[PostTypeCapabilities.EditPosts]!!.isEmpty())
3131
}
3232

0 commit comments

Comments
 (0)