Fixes the test case for emojis

This commit is contained in:
Vitor Pamplona
2025-05-03 16:33:28 -04:00
parent 0d53a30371
commit 15dfbb2f31
@@ -24,6 +24,7 @@ import com.vitorpamplona.amethyst.model.Account
import com.vitorpamplona.amethyst.model.LocalCache
import com.vitorpamplona.amethyst.model.Note
import com.vitorpamplona.amethyst.model.User
import com.vitorpamplona.amethyst.model.nip30CustomEmojis.EmojiPackState.EmojiMedia
import com.vitorpamplona.amethyst.ui.screen.loggedIn.AccountViewModel
import com.vitorpamplona.quartz.nip01Core.core.HexKey
import com.vitorpamplona.quartz.nip01Core.tags.people.PTag
@@ -77,7 +78,7 @@ class NewPostViewModelTest {
every { accountViewModel.userProfile() } returns mockk<User>(relaxed = true)
every { accountViewModel.account.userProfile() } returns mockk<User>(relaxed = true)
every { accountViewModel.account.myEmojis } returns mockk<StateFlow<List<Account.EmojiMedia>>>(relaxed = true)
every { accountViewModel.account.emoji.myEmojis } returns mockk<StateFlow<List<EmojiMedia>>>(relaxed = true)
// Act: Call load with mentions
newPostViewModelUnderTest.init(accountViewModel)