Fix tests
This commit is contained in:
parent
bc0f97ad69
commit
e6e4d58fe0
2 changed files with 6 additions and 0 deletions
|
@ -31,6 +31,8 @@ val TestCommonModule = module {
|
|||
override fun getAllThemes(): List<AppTheme> = listOf(LightTheme)
|
||||
|
||||
override fun setTheme(theme: AppTheme) { }
|
||||
|
||||
override fun reset(): AppTheme = LightTheme
|
||||
}
|
||||
} bind IThemeRepository::class
|
||||
}
|
||||
|
|
|
@ -7,6 +7,10 @@ import dev.lucasnlm.antimine.core.preferences.IPreferencesRepository
|
|||
class MockPreferencesRepository : IPreferencesRepository {
|
||||
private var customMinefield = Minefield(9, 9, 9)
|
||||
|
||||
override fun hasCustomizations(): Boolean = true
|
||||
|
||||
override fun reset() { }
|
||||
|
||||
override fun customGameMode(): Minefield = customMinefield
|
||||
|
||||
override fun updateCustomGameMode(minefield: Minefield) {
|
||||
|
|
Loading…
Reference in a new issue