Fix test compilation

This commit is contained in:
Benoit Marty 2023-01-27 18:13:27 +01:00
parent d6712b7c93
commit 0c89245392
1 changed files with 4 additions and 1 deletions

View File

@ -16,12 +16,15 @@
package im.vector.app.features.command
import im.vector.app.test.fakes.FakeVectorPreferences
import org.amshove.kluent.shouldBeEqualTo
import org.junit.Test
private const val A_SPACE_ID = "!my-space-id"
class CommandParserTest {
private val fakeVectorPreferences = FakeVectorPreferences()
@Test
fun parseSlashCommandEmpty() {
test("/", ParsedCommand.ErrorEmptySlashCommand)
@ -70,7 +73,7 @@ class CommandParserTest {
}
private fun test(message: String, expectedResult: ParsedCommand) {
val commandParser = CommandParser()
val commandParser = CommandParser(fakeVectorPreferences.instance)
val result = commandParser.parseSlashCommand(message, null, false)
result shouldBeEqualTo expectedResult
}