Ensure Robolectric test are run using API 36 until the library support API 37.
This commit is contained in:
committed by
Benoit Marty
parent
51c3ee0eae
commit
c430877d87
+2
-4
@@ -10,12 +10,10 @@ package io.element.android.libraries.matrix.impl.keys
|
||||
|
||||
import com.google.common.truth.Truth.assertThat
|
||||
import io.element.android.libraries.androidutils.crypto.ClientSecret
|
||||
import io.element.android.tests.testutils.robolectric.RobolectricTest
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.robolectric.RobolectricTestRunner
|
||||
|
||||
@RunWith(RobolectricTestRunner::class)
|
||||
class DefaultSecretGeneratorTest {
|
||||
class DefaultSecretGeneratorTest : RobolectricTest() {
|
||||
@Test
|
||||
fun `check that generated passphrase has the expected length`() {
|
||||
val secretGenerator = DefaultSecretGenerator()
|
||||
|
||||
+2
-4
@@ -10,12 +10,10 @@ package io.element.android.libraries.matrix.impl.permalink
|
||||
|
||||
import android.net.Uri
|
||||
import com.google.common.truth.Truth.assertThat
|
||||
import io.element.android.tests.testutils.robolectric.RobolectricTest
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.robolectric.RobolectricTestRunner
|
||||
|
||||
@RunWith(RobolectricTestRunner::class)
|
||||
class DefaultMatrixToConverterTest {
|
||||
class DefaultMatrixToConverterTest : RobolectricTest() {
|
||||
@Test
|
||||
fun `converting a matrix-to url does nothing`() {
|
||||
val url = Uri.parse("https://matrix.to/#/#element-android:matrix.org")
|
||||
|
||||
Reference in New Issue
Block a user