~wegtam/smederee
Showing details for patch c8c951ba3d8b90f696f963f61f64738afafefa2a.
diff -rN -u old-smederee/modules/hub/src/test/scala/de/smederee/hub/AuthenticationMiddlewareTest.scala new-smederee/modules/hub/src/test/scala/de/smederee/hub/AuthenticationMiddlewareTest.scala --- old-smederee/modules/hub/src/test/scala/de/smederee/hub/AuthenticationMiddlewareTest.scala 2024-11-23 08:47:18.038109666 +0000 +++ new-smederee/modules/hub/src/test/scala/de/smederee/hub/AuthenticationMiddlewareTest.scala 2024-11-23 08:47:18.038109666 +0000 @@ -61,8 +61,8 @@ _ <- createUserSession(session) user <- resolveUser[IO](repo)(timeouts).run(session.id) } yield user - test.start.flatMap(_.joinWithNever).map { maybeUser => - assert(clue(maybeUser) === clue(Option(account))) + test.start.flatMap(_.joinWithNever).map { user => + assert(clue(user) === clue(account.some)) } } } @@ -90,8 +90,8 @@ _ <- createUserSession(session) user <- resolveUser[IO](repo)(timeouts).run(session.id) } yield user - test.start.flatMap(_.joinWithNever).map { maybeUser => - assert(clue(maybeUser) === clue(Option(account))) + test.start.flatMap(_.joinWithNever).map { user => + assert(clue(user) === clue(account.some)) } } } @@ -113,8 +113,8 @@ _ <- createAccount(account, PasswordHash("I am not a password hash!"), None, None) user <- resolveUser[IO](repo)(timeouts).run(session.id) } yield user - test.start.flatMap(_.joinWithNever).map { maybeUser => - assert(clue(maybeUser) === None) + test.start.flatMap(_.joinWithNever).map { user => + assert(clue(user) === None) } } }