Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Mock#empty should be an Expectation #12

Open
vigoo opened this issue Feb 10, 2022 · 0 comments
Open

Mock#empty should be an Expectation #12

vigoo opened this issue Feb 10, 2022 · 0 comments

Comments

@vigoo
Copy link
Contributor

vigoo commented Feb 10, 2022

Currently it is an ULayer which makes it impossible to use it for example in a foldLeft as the empty expectation, and Expectation.NoCalls is not public.

We should be able to do

val mock = examples.foldLeft(Api.empty) { case (mock, example) => mock && Api.xyz(equalTo(example)) }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant