Add unit test on DefaultOnBoardingLogoResIdProvider
This commit is contained in:
parent
dbc511ba1b
commit
62ef4db2e8
1 changed files with 25 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2025 New Vector Ltd.
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||||
|
* Please see LICENSE files in the repository root for full details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package io.element.android.features.login.impl.screens.onboarding
|
||||||
|
|
||||||
|
import androidx.test.ext.junit.runners.AndroidJUnit4
|
||||||
|
import androidx.test.platform.app.InstrumentationRegistry
|
||||||
|
import com.google.common.truth.Truth.assertThat
|
||||||
|
import org.junit.Test
|
||||||
|
import org.junit.runner.RunWith
|
||||||
|
|
||||||
|
@RunWith(AndroidJUnit4::class)
|
||||||
|
class DefaultOnBoardingLogoResIdProviderTest {
|
||||||
|
@Test
|
||||||
|
fun `when onboarding_logo resource exists, return its resId`() {
|
||||||
|
val context = InstrumentationRegistry.getInstrumentation().context
|
||||||
|
val sut = DefaultOnBoardingLogoResIdProvider(context)
|
||||||
|
val result = sut.get()
|
||||||
|
assertThat(result).isNull()
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue