fix tests

This commit is contained in:
Lucas Lima 2020-03-18 00:21:34 -03:00
parent 19d700a276
commit 166efb5c77
No known key found for this signature in database
GPG key ID: C5EEF4C30BFBF8D7

View file

@ -17,7 +17,7 @@ class MinefieldFactoryTest {
@Test
fun testFromDifficultyPresetBeginner() {
MinefieldRepository.fromDifficulty(
MinefieldRepository().fromDifficulty(
Difficulty.Beginner, dimensionRepository, preferencesRepository
).run {
assertEquals(9, width)
@ -28,7 +28,7 @@ class MinefieldFactoryTest {
@Test
fun testFromDifficultyPresetIntermediate() {
MinefieldRepository.fromDifficulty(
MinefieldRepository().fromDifficulty(
Difficulty.Intermediate, dimensionRepository, preferencesRepository
).run {
assertEquals(16, width)
@ -39,7 +39,7 @@ class MinefieldFactoryTest {
@Test
fun testFromDifficultyPresetExpert() {
MinefieldRepository.fromDifficulty(
MinefieldRepository().fromDifficulty(
Difficulty.Expert, dimensionRepository, preferencesRepository
).run {
assertEquals(24, width)
@ -58,7 +58,7 @@ class MinefieldFactoryTest {
)
}
MinefieldRepository.fromDifficulty(
MinefieldRepository().fromDifficulty(
Difficulty.Custom,
mock(),
preferencesRepository
@ -80,7 +80,7 @@ class MinefieldFactoryTest {
}
}
MinefieldRepository.fromDifficulty(
MinefieldRepository().fromDifficulty(
Difficulty.Standard,
dimensionRepository,
preferencesRepository