Skip to content

Commit

Permalink
yay
Browse files Browse the repository at this point in the history
  • Loading branch information
jnatten committed Dec 6, 2023
1 parent 168920b commit 5e1b4c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions myndla/src/test/scala/no/ndla/myndla/TestEnvironment.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import no.ndla.myndla.service.{
UserService
}
import no.ndla.network.clients.{FeideApiClient, RedisClient}
import org.mockito.Mockito.{reset, spy}
import org.mockito.MockitoSugar.mock
import org.mockito.Mockito.spy
import org.mockito.MockitoSugar.{mock, reset}

trait TestEnvironment
extends UserService
Expand Down Expand Up @@ -66,7 +66,6 @@ trait TestEnvironment
folderWriteService,
folderConverterService
)

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import scala.util.{Failure, Success, Try}

class FolderWriteServiceTest extends UnitTestSuite with TestEnvironment {

val MaxFolderDepth = 5
val MaxFolderDepth = 5L

val service = new FolderWriteService

Expand Down Expand Up @@ -495,7 +495,7 @@ class FolderWriteServiceTest extends UnitTestSuite with TestEnvironment {
description = None,
owner = None
)
val belowLimit = MaxFolderDepth - 2
val belowLimit: Long = MaxFolderDepth - 2

when(feideApiClient.getFeideID(any)).thenReturn(Success(feideId))
when(userService.getOrCreateMyNDLAUserIfNotExist(any, any)(any)).thenReturn(Success(emptyMyNDLAUser))
Expand Down

0 comments on commit 5e1b4c3

Please sign in to comment.