File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
main/kotlin/no/nav/tms/statistikk/login
test/kotlin/no/nav/tms/statistikk Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ import io.ktor.server.routing.*
8
8
9
9
fun Route.loginApi (loginRepository : LoginRepository ) {
10
10
post(" /innlogging" ) {
11
- val login: Login = call.receive()
12
- loginRepository.registerLogin(login.ident)
11
+ // val login: Login = call.receive()
12
+ // loginRepository.registerLogin(login.ident)
13
13
call.respond(HttpStatusCode .NoContent )
14
14
}
15
15
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class StatistikkApiTest {
28
28
}
29
29
30
30
@Test
31
- fun innlogging () = testApplication {
31
+ fun `lagrer ikke data om innlogging` () = testApplication {
32
32
application {
33
33
statistikkApi(loginRepository, authorized)
34
34
}
@@ -59,7 +59,7 @@ class StatistikkApiTest {
59
59
.map {
60
60
it.int(" total" )
61
61
}.asSingle
62
- } shouldBe 2
62
+ } shouldBe 0
63
63
}
64
64
65
65
@Test
You can’t perform that action at this time.
0 commit comments