mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-31 01:58:13 -04:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user