Konsist: add rule obout test class name, and fix existing issue
This commit is contained in:
parent
8f8a5746e5
commit
7389748f3e
11 changed files with 20 additions and 10 deletions
|
|
@ -19,7 +19,7 @@ package io.element.android.libraries.matrix.api.auth
|
|||
import com.google.common.truth.Truth.assertThat
|
||||
import org.junit.Test
|
||||
|
||||
class AuthErrorCodeTests {
|
||||
class AuthErrorCodeTest {
|
||||
|
||||
@Test
|
||||
fun `errorCode finds UNKNOWN code`() {
|
||||
|
|
@ -23,7 +23,7 @@ import org.junit.runner.RunWith
|
|||
import org.robolectric.RobolectricTestRunner
|
||||
|
||||
@RunWith(RobolectricTestRunner::class)
|
||||
class MatrixToConverterTests {
|
||||
class MatrixToConverterTest {
|
||||
|
||||
@Test
|
||||
fun `converting a matrix-to url does nothing`() {
|
||||
|
|
@ -23,7 +23,7 @@ import io.element.android.tests.testutils.assertThrowsInDebug
|
|||
import io.element.android.tests.testutils.isInDebug
|
||||
import org.junit.Test
|
||||
|
||||
class PermalinkBuilderTests {
|
||||
class PermalinkBuilderTest {
|
||||
|
||||
fun `building a permalink for an invalid user id throws when verifying the id`() {
|
||||
assertThrowsInDebug {
|
||||
|
|
@ -22,7 +22,7 @@ import org.junit.runner.RunWith
|
|||
import org.robolectric.RobolectricTestRunner
|
||||
|
||||
@RunWith(RobolectricTestRunner::class)
|
||||
class PermalinkParserTests {
|
||||
class PermalinkParserTest {
|
||||
|
||||
@Test
|
||||
fun `parsing an invalid url returns a fallback link`() {
|
||||
Loading…
Add table
Add a link
Reference in a new issue