mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Konsist: add rule obout test class name, and fix existing issue
This commit is contained in:
committed by
Benoit Marty
parent
8f8a5746e5
commit
7389748f3e
+1
-1
@@ -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`() {
|
||||
+1
-1
@@ -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`() {
|
||||
+1
-1
@@ -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 {
|
||||
+1
-1
@@ -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`() {
|
||||
Reference in New Issue
Block a user