Skip to content

Commit 1a0e625

Browse files
committed
Add unit test on DefaultOnBoardingLogoResIdProvider
1 parent 6e4f034 commit 1a0e625

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright 2025 New Vector Ltd.
3+
*
4+
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
5+
* Please see LICENSE files in the repository root for full details.
6+
*/
7+
8+
package io.element.android.features.login.impl.screens.onboarding
9+
10+
import androidx.test.ext.junit.runners.AndroidJUnit4
11+
import androidx.test.platform.app.InstrumentationRegistry
12+
import com.google.common.truth.Truth.assertThat
13+
import org.junit.Test
14+
import org.junit.runner.RunWith
15+
16+
@RunWith(AndroidJUnit4::class)
17+
class DefaultOnBoardingLogoResIdProviderTest {
18+
@Test
19+
fun `when onboarding_logo resource exists, return its resId`() {
20+
val context = InstrumentationRegistry.getInstrumentation().context
21+
val sut = DefaultOnBoardingLogoResIdProvider(context)
22+
val result = sut.get()
23+
assertThat(result).isNull()
24+
}
25+
}

0 commit comments

Comments
 (0)