~wegtam/smederee

Showing details for patch c8c951ba3d8b90f696f963f61f64738afafefa2a.
2024-08-03 (Sat), 9:39 AM - Jens Grassel - c8c951ba3d8b90f696f963f61f64738afafefa2a

chore: code cleanup

Summary of changes
1 files modified with 6 lines added and 6 lines removed
  • modules/hub/src/test/scala/de/smederee/hub/AuthenticationMiddlewareTest.scala with 6 added and 6 removed lines
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)
             }
         }
     }