Skip to content

Commit

Permalink
fix(MockErrorBannerStateRepository): Default argument interop
Browse files Browse the repository at this point in the history
  • Loading branch information
KaylaBrady committed Jan 10, 2025
1 parent acb41b7 commit db4e985
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.mbta.tid.mbta_app.repositories

import co.touchlab.skie.configuration.annotations.DefaultArgumentInterop
import com.mbta.tid.mbta_app.model.ErrorBannerState
import com.mbta.tid.mbta_app.network.INetworkConnectivityMonitor
import kotlin.time.Duration.Companion.minutes
Expand Down Expand Up @@ -90,7 +91,9 @@ abstract class IErrorBannerStateRepository(initialState: ErrorBannerState? = nul

class ErrorBannerStateRepository : IErrorBannerStateRepository(), KoinComponent

class MockErrorBannerStateRepository(
class MockErrorBannerStateRepository
@DefaultArgumentInterop.Enabled
constructor(
state: ErrorBannerState? = null,
onSubscribeToNetworkChanges: (() -> Unit)? = null,
onCheckPredictionsStale: (() -> Unit)? = null
Expand Down

0 comments on commit db4e985

Please sign in to comment.