Skip to content

Commit

Permalink
test: Fix MessagesTest inline with 8.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SMadani committed Oct 21, 2024
1 parent b375833 commit cc1c70b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/test/kotlin/com/vonage/client/kt/MessagesTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -235,16 +235,17 @@ class MessagesTest : AbstractTest() {
fun `send Viber video`() {
val duration = 23
val fileSize = 7
val ttl = 90 // TODO fix in Java SDK
val ttl = 90
val thumbUrl = "https://example.com/file1.jpg"
testSend(videoBody(viberChannel,
captionMap + mapOf("thumb_url" to thumbUrl)) + mapOf(viberChannel to mapOf(
"category" to "transaction",
"duration" to duration,
"ttl" to ttl,
"file_size" to fileSize
)), viberVideo {
from(altNumber); to(toNumber); url(videoUrl); caption(caption);
category(Category.TRANSACTION); duration(duration)
from(altNumber); to(toNumber); url(videoUrl); caption(caption)
category(Category.TRANSACTION); duration(duration); ttl(ttl)
fileSize(fileSize); thumbUrl(thumbUrl)
}
)
Expand Down Expand Up @@ -398,7 +399,7 @@ class MessagesTest : AbstractTest() {
val params = whatsappCustomBody(mapOf(
"type" to "location",
"location" to mapOf(
"lat" to latitude, "long" to longitude,
"latitude" to latitude, "longitude" to longitude,
"name" to name, "address" to address
)
)
Expand Down

0 comments on commit cc1c70b

Please sign in to comment.