Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Apr 9, 2024
1 parent 113f00f commit 13b3d10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/jvmTest/kotlin/entity/MessageTest.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package dev.kord.core.entity

import dev.kord.common.entity.optional.Optional
import dev.kord.core.behavior.MessageBehavior
import dev.kord.core.cache.data.MessageData
import dev.kord.core.equality.BehaviorEqualityTest
Expand All @@ -13,6 +14,7 @@ internal class MessageTest : EntityEqualityTest<Message> by EntityEqualityTest({
val data = mockk<MessageData>()
every { data.id } returns it
every { data.channelId } returns it
every { data.poll } returns Optional.Missing()
Message(data, kord)
}), BehaviorEqualityTest<Message> {
override fun Message.behavior(): KordEntity = MessageBehavior(messageId = id, channelId = id, kord = kord)
Expand Down

0 comments on commit 13b3d10

Please sign in to comment.