Move Android instrumented test `ThemeTest` to unit test

pull/1048/head
Simon Marquis 1 year ago
parent 5087c86412
commit cf2d445362

@ -42,5 +42,5 @@ dependencies {
implementation(libs.androidx.core.ktx)
implementation(libs.coil.kt.compose)
androidTestImplementation(projects.core.testing)
testImplementation(libs.androidx.compose.ui.testManifest)
}

@ -43,6 +43,9 @@ import com.google.samples.apps.nowinandroid.core.designsystem.theme.NiaTheme
import com.google.samples.apps.nowinandroid.core.designsystem.theme.TintTheme
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import org.robolectric.annotation.Config
import kotlin.test.assertEquals
/**
@ -53,6 +56,8 @@ import kotlin.test.assertEquals
* [LocalBackgroundTheme] have the expected values for a given theme mode, as specified by the
* design system.
*/
@RunWith(RobolectricTestRunner::class)
@Config(sdk = [33])
class ThemeTest {
@get:Rule
Loading…
Cancel
Save