Update config
This commit is contained in:
@@ -9,7 +9,6 @@ import be.simplenotes.domain.security.UserJwtMapper
|
||||
import be.simplenotes.domain.testutils.isLeftOfType
|
||||
import be.simplenotes.domain.testutils.isRight
|
||||
import be.simplenotes.persistence.repositories.UserRepository
|
||||
import be.simplenotes.persistence.transactions.TransactionService
|
||||
import be.simplenotes.types.PersistedUser
|
||||
import com.natpryce.hamkrest.assertion.assertThat
|
||||
import com.natpryce.hamkrest.equalTo
|
||||
@@ -23,16 +22,12 @@ internal class UserServiceTest {
|
||||
val passwordHash = BcryptPasswordHash(test = true)
|
||||
val jwtConfig = JwtConfig("a secret", 1, TimeUnit.HOURS)
|
||||
val simpleJwt = SimpleJwt(jwtConfig, UserJwtMapper())
|
||||
val noopTransactionService = object : TransactionService {
|
||||
override fun <T> use(block: () -> T) = block()
|
||||
}
|
||||
|
||||
val userService = UserServiceImpl(
|
||||
userRepository = userRepository,
|
||||
passwordHash = passwordHash,
|
||||
jwt = simpleJwt,
|
||||
searcher = mockk(),
|
||||
transactionService = noopTransactionService
|
||||
)
|
||||
|
||||
@BeforeEach
|
||||
|
||||
Reference in New Issue
Block a user