diff --git a/app/src/test/java/dev/lucasnlm/antimine/mocks/MockPreferencesRepository.kt b/app/src/test/java/dev/lucasnlm/antimine/mocks/MockPreferencesRepository.kt index a1ac5e7b..45555905 100644 --- a/app/src/test/java/dev/lucasnlm/antimine/mocks/MockPreferencesRepository.kt +++ b/app/src/test/java/dev/lucasnlm/antimine/mocks/MockPreferencesRepository.kt @@ -45,10 +45,12 @@ class MockPreferencesRepository : IPreferencesRepository { override fun disableRequestRating() { } - override fun unlockExtras() { } + override fun setLockExtras(lock: Boolean, keepShowingSupportButton: Boolean) { } override fun areExtrasUnlocked(): Boolean = false + override fun showSupport(): Boolean = true + override fun useFlagAssistant(): Boolean = false override fun useHapticFeedback(): Boolean = true diff --git a/common/src/test/java/dev/lucasnlm/antimine/common/level/logic/MinefieldHandlerTest.kt b/common/src/test/java/dev/lucasnlm/antimine/common/level/logic/MinefieldHandlerTest.kt index a71329b5..589f4968 100644 --- a/common/src/test/java/dev/lucasnlm/antimine/common/level/logic/MinefieldHandlerTest.kt +++ b/common/src/test/java/dev/lucasnlm/antimine/common/level/logic/MinefieldHandlerTest.kt @@ -102,7 +102,13 @@ class MinefieldHandlerTest { handler.openAt(5, false, openNeighbors = false) handler.highlightAt(5) assertEquals(8, handler.result().count { it.highlighted }) - assertEquals(listOf(0, 1, 2, 4, 6, 8, 9, 10), handler.result().filter { it.highlighted }.map { it.id }.toList()) + assertEquals( + listOf(0, 1, 2, 4, 6, 8, 9, 10), + handler.result() + .filter { it.highlighted } + .map { it.id } + .toList() + ) } }