File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/test/kotlin/com/google/samples/apps/nowinandroid/core/designsystem Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -42,5 +42,5 @@ dependencies {
4242 implementation(libs.androidx.core.ktx)
4343 implementation(libs.coil.kt.compose)
4444
45- androidTestImplementation(projects.core.testing )
45+ testImplementation(libs.androidx.compose.ui.testManifest )
4646}
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ import com.google.samples.apps.nowinandroid.core.designsystem.theme.NiaTheme
4343import com.google.samples.apps.nowinandroid.core.designsystem.theme.TintTheme
4444import org.junit.Rule
4545import org.junit.Test
46+ import org.junit.runner.RunWith
47+ import org.robolectric.RobolectricTestRunner
48+ import org.robolectric.annotation.Config
4649import kotlin.test.assertEquals
4750
4851/* *
@@ -53,6 +56,8 @@ import kotlin.test.assertEquals
5356 * [LocalBackgroundTheme] — have the expected values for a given theme mode, as specified by the
5457 * design system.
5558 */
59+ @RunWith(RobolectricTestRunner ::class )
60+ @Config(sdk = [33 ])
5661class ThemeTest {
5762
5863 @get:Rule
You can’t perform that action at this time.
0 commit comments