Fix tests

This commit is contained in:
Lucas Lima 2020-08-25 00:04:00 -03:00
parent bc0f97ad69
commit e6e4d58fe0
No known key found for this signature in database
GPG key ID: C5EEF4C30BFBF8D7
2 changed files with 6 additions and 0 deletions

View file

@ -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
}

View file

@ -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) {