Add unit test on DefaultOnBoardingLogoResIdProvider
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user