From 4007bae1e23f1d9945d4bd04f77b6e52d4396353 Mon Sep 17 00:00:00 2001 From: Kane Waldo Date: Tue, 11 Aug 2026 09:19:43 +0700 Subject: [PATCH] Fix syntax error in CommandProcessorTest --- .../android/ui/CommandProcessorTest.kt | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/app/src/test/java/com/bitchat/android/ui/CommandProcessorTest.kt b/app/src/test/java/com/bitchat/android/ui/CommandProcessorTest.kt index 2ed944fe..985e9a9f 100644 --- a/app/src/test/java/com/bitchat/android/ui/CommandProcessorTest.kt +++ b/app/src/test/java/com/bitchat/android/ui/CommandProcessorTest.kt @@ -24,11 +24,12 @@ import org.robolectric.RobolectricTestRunner import java.util.Date @RunWith(RobolectricTestRunner::class) -class CommandProcessorTest() { +class CommandProcessorTest { private val context: Context = ApplicationProvider.getApplicationContext() - @OptIn(ExperimentalCoroutinesApi::class) - private val testDispatcher = UnconfinedTestDispatcher() - private val testScope = TestScope(testDispatcher) + + @OptIn(ExperimentalCoroutinesApi::class) + private val testDispatcher = UnconfinedTestDispatcher() + private val testScope = TestScope(testDispatcher) private val chatState = ChatState(scope = testScope) private lateinit var commandProcessor: CommandProcessor @@ -63,11 +64,11 @@ class CommandProcessorTest() { val channel = "channel-1" val result = commandProcessor.processCommand( - command = "/j $channel", - meshService = meshService, - myPeerID = "peer-id", - onSendMessage = { a, b, c -> { } }, - viewModel = null + command = "/j $channel", + meshService = meshService, + myPeerID = "peer-id", + onSendMessage = { a, b, c -> { } }, + viewModel = null ) assertEquals(result, true) @@ -206,4 +207,4 @@ class CommandProcessorTest() { assertTrue(chatState.getMentionSuggestionsValue().isEmpty()) } -} +} \ No newline at end of file