Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wkal-pubnub committed Dec 20, 2024
1 parent df2dcb3 commit c10ce72
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pubnub-chat-impl/src/commonTest/kotlin/com/pubnub/kmp/ChatTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,12 @@ class ChatTest : BaseTest() {
mute = mute,
reason = "paid"
)
every { getChannelMetadataEndpoint.async(any()) } calls { (callback1: Consumer<Result<PNChannelMetadataResult>>) ->
callback1.accept(Result.success(getPNChannelMetadataResult("PUBNUB_INTERNAL_MODERATION_myChannelId")))
}
every {
pubnub.getChannelMetadata(channel = "PUBNUB_INTERNAL_MODERATION_myChannelId", includeCustom = true)
} returns getChannelMetadataEndpoint
every {
pubnub.removeChannelMembers(
capture(channelIdSlot),
Expand Down Expand Up @@ -1405,6 +1411,12 @@ class ChatTest : BaseTest() {
mute = mute,
reason = reason
)
every { getChannelMetadataEndpoint.async(any()) } calls { (callback1: Consumer<Result<PNChannelMetadataResult>>) ->
callback1.accept(Result.success(getPNChannelMetadataResult("PUBNUB_INTERNAL_MODERATION_myChannelId")))
}
every {
pubnub.getChannelMetadata(channel = "PUBNUB_INTERNAL_MODERATION_myChannelId", includeCustom = true)
} returns getChannelMetadataEndpoint
every {
pubnub.setChannelMembers(
channel = capture(channelIdSlot),
Expand Down

0 comments on commit c10ce72

Please sign in to comment.