Skip to content

Instantly share code, notes, and snippets.

@Nyame123
Created June 13, 2021 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nyame123/af745cf4903b5ccfd582dafc5fcafadb to your computer and use it in GitHub Desktop.
Save Nyame123/af745cf4903b5ccfd582dafc5fcafadb to your computer and use it in GitHub Desktop.
@UninstallModules(AnalyticsModule::class)
@HiltAndroidTest
class SettingsActivityTest {
@Module
@InstallIn(SingletonComponent::class)
abstract class TestModule {
@Singleton
@Binds
abstract fun bindAnalyticsService(
fakeAnalyticsService: FakeAnalyticsService
): AnalyticsService
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment