Skip to content

Commit

Permalink
stub client testkit
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdemarGr committed Sep 26, 2023
1 parent 3018119 commit 072cbe6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testkit/src/main/scala/spice4s/testkit/StubClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,7 @@ class StubClient[F[_]: Monad](

object StubClient {
case class State(relationships: List[Relationship])

def apply[F[_]](implicit F: Concurrent[F]): F[StubClient[F]] =
F.ref(State(Nil)).map(new StubClient(_))
}

0 comments on commit 072cbe6

Please sign in to comment.