Add ktlint config
This commit is contained in:
@@ -35,7 +35,6 @@ class AuthControllerKtTest {
|
||||
|
||||
private val passwordHash by kodein.instance<PasswordHash>()
|
||||
|
||||
|
||||
init {
|
||||
|
||||
val user = User {
|
||||
@@ -63,7 +62,6 @@ class AuthControllerKtTest {
|
||||
coEvery { userService.find(3) } returns null
|
||||
}
|
||||
|
||||
|
||||
private val testEngine = TestApplicationEngine().apply {
|
||||
start()
|
||||
application.module(kodein)
|
||||
@@ -136,7 +134,6 @@ class AuthControllerKtTest {
|
||||
}
|
||||
res.status() `should be equal to` HttpStatusCode.BadRequest
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -195,7 +192,6 @@ class AuthControllerKtTest {
|
||||
res.status() `should be equal to` HttpStatusCode.Unauthorized
|
||||
res.content `should strictly be equal to json` """{msg: "Unauthorized"}"""
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -224,6 +220,4 @@ class AuthControllerKtTest {
|
||||
jsonObject.keyList() `should be equal to` listOf("msg")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -38,10 +38,8 @@ class UserControllerKtTest {
|
||||
coEvery { userService.exists(and(not("modified"), not("existing"))) } returns false
|
||||
coEvery { userService.exists(1) } returns true
|
||||
coEvery { userService.create("modified", any()) } returns null
|
||||
|
||||
}
|
||||
|
||||
|
||||
private val kodein = DI {
|
||||
import(mainModule, allowOverride = true)
|
||||
bind<UserService>(overrides = true) with instance(userService)
|
||||
@@ -79,7 +77,6 @@ class UserControllerKtTest {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Nested
|
||||
inner class DeleteUser {
|
||||
|
||||
@@ -102,5 +99,4 @@ class UserControllerKtTest {
|
||||
res2.content `should be equal to json` """{msg:"Not Found"}"""
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user