fix: update MessageViewModelTest mock for SendMessageUseCase return type

The interface now returns Int (packetId), so the test mock must
return an Int instead of Unit.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
James Rich
2026-05-21 18:32:48 -05:00
parent 439dee7134
commit ec62ea4dd2

View File

@@ -179,7 +179,7 @@ class MessageViewModelTest {
@Test
fun testSendMessage() = runTest {
everySuspend { sendMessageUseCase.invoke(any(), any(), any()) } returns Unit
everySuspend { sendMessageUseCase.invoke(any(), any(), any()) } returns 1
viewModel.sendMessage("Hello", "0!12345678", null)