Skip to content

Commit

Permalink
feat: add a feature flag test
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmurerwa committed Nov 22, 2023
1 parent e93ff75 commit 8ae088c
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import dagger.BindsInstance
import dagger.Component
import dagger.Module
import dagger.Provides
import javax.inject.Inject
import javax.inject.Singleton
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
Expand Down Expand Up @@ -38,6 +36,8 @@ import org.oppia.android.util.logging.LogLevel
import org.oppia.android.util.networking.NetworkConnectionUtilDebugModule
import org.robolectric.annotation.Config
import org.robolectric.annotation.LooperMode
import javax.inject.Inject
import javax.inject.Singleton

/** Tests for [FeatureFlagsLogger]. */
// FunctionName: test names are conventionally named with underscores.
Expand Down Expand Up @@ -129,8 +129,9 @@ class FeatureFlagsLoggerTest {
@Singleton
@Component(
modules = [
PerformanceMetricsLoggerTest.TestModule::class, TestLogReportingModule::class, RobolectricModule::class,
TestDispatcherModule::class, PerformanceMetricsLoggerTest.TestLogStorageModule::class,
PerformanceMetricsLoggerTest.TestModule::class, TestLogReportingModule::class,
RobolectricModule::class, TestDispatcherModule::class,
PerformanceMetricsLoggerTest.TestLogStorageModule::class,
NetworkConnectionUtilDebugModule::class, LocaleProdModule::class, FakeOppiaClockModule::class,
TestPlatformParameterModule::class, PlatformParameterSingletonModule::class,
LoggingIdentifierModule::class, SyncStatusTestModule::class, AssetModule::class,
Expand Down Expand Up @@ -162,4 +163,4 @@ class FeatureFlagsLoggerTest {

override fun getDataProvidersInjector(): DataProvidersInjector = component
}
}
}

0 comments on commit 8ae088c

Please sign in to comment.