From eb4a32b735dc2ff95322add5ef519f9b8a34d2cf Mon Sep 17 00:00:00 2001 From: Brandon McAnsh Date: Thu, 23 Jul 2026 18:07:02 -0400 Subject: [PATCH] test(session): pass tippingDelegate arg in SessionController tests RealSessionController gained a required tippingDelegate: TipCardDelegate constructor parameter (tip card resolution/presentation), but the two SessionController unit tests still constructed it without that argument, breaking :apps:flipcash:shared:session:compileDebugUnitTestKotlin and the overall test build. Pass a relaxed mock, matching the other delegates. --- .../app/session/internal/SessionControllerEventRoutingTest.kt | 1 + .../app/session/internal/SessionControllerGiftCardErrorTest.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/flipcash/shared/session/src/test/kotlin/com/flipcash/app/session/internal/SessionControllerEventRoutingTest.kt b/apps/flipcash/shared/session/src/test/kotlin/com/flipcash/app/session/internal/SessionControllerEventRoutingTest.kt index 1c7d3a665..c4010be45 100644 --- a/apps/flipcash/shared/session/src/test/kotlin/com/flipcash/app/session/internal/SessionControllerEventRoutingTest.kt +++ b/apps/flipcash/shared/session/src/test/kotlin/com/flipcash/app/session/internal/SessionControllerEventRoutingTest.kt @@ -102,6 +102,7 @@ class SessionControllerEventRoutingTest { cashLinkDelegate = cashLinkDelegate, depositDelegate = mockk(relaxed = true), giftCardDelegate = giftCardDelegate, + tippingDelegate = mockk(relaxed = true), stateHolder = SessionStateHolder(), billController = billController, userManager = userManager, diff --git a/apps/flipcash/shared/session/src/test/kotlin/com/flipcash/app/session/internal/SessionControllerGiftCardErrorTest.kt b/apps/flipcash/shared/session/src/test/kotlin/com/flipcash/app/session/internal/SessionControllerGiftCardErrorTest.kt index d95d161f7..ee0fecfba 100644 --- a/apps/flipcash/shared/session/src/test/kotlin/com/flipcash/app/session/internal/SessionControllerGiftCardErrorTest.kt +++ b/apps/flipcash/shared/session/src/test/kotlin/com/flipcash/app/session/internal/SessionControllerGiftCardErrorTest.kt @@ -125,6 +125,7 @@ class SessionControllerGiftCardErrorTest { cashLinkDelegate = cashLinkDelegate, depositDelegate = mockk(relaxed = true), giftCardDelegate = giftCardDelegate, + tippingDelegate = mockk(relaxed = true), stateHolder = stateHolder, billController = billController, userManager = userManager,