I have the following function I want to mock:
def deployments(): Task[Seq[Deployment]]
My envBuilder looks like:
ZLayer.fromService(invoke =>
new processEngineService.Service {
def deployments(): Task[Seq[Deployment]] =
invoke(Deployments)
}
)
How can I set up my expectations for this?
Following the docs (GetStrLn returns value("42")
) I tried:
ProcessEngineMock.Deployments returns value(Seq(deployment))
But this gives me:
- unsatisfied expectations
in sequential order
..ProcessEngineMock.Deployments with arguments isUnit()
How is this done correctly?