Skip to content

Commit

Permalink
Push works
Browse files Browse the repository at this point in the history
  • Loading branch information
cheroliv committed Sep 30, 2024
1 parent 883277b commit 4f7796c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions springboot/api/src/test/kotlin/webapp/users/UserTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import webapp.core.utils.AppUtils.toJson
import webapp.core.utils.i
import webapp.users.UserDao.Dao.findOneByEmail
import webapp.users.UserDao.Dao.save
import java.util.*
import kotlin.test.*


Expand Down Expand Up @@ -100,10 +99,10 @@ class UserTests {
fun `check findOneByEmail with existant email`(): Unit = runBlocking {
assertEquals(0, context.countUsers(), "context should not have a user recorded in database")
(user to context).save()
assertEquals(1, context.countUsers(),"context should have only one user recorded in database")
assertEquals(1, context.countUsers(), "context should have only one user recorded in database")
context.findOneByEmail<User>(user.email).apply {
assertTrue(isRight())
assertFalse(isLeft())
}.map { assertEquals(it, user.withId(it.id as UUID)) }
}.map { assertEquals(it, user.withId(it.id!!)) }
}
}

0 comments on commit 4f7796c

Please sign in to comment.