Closed hainayanda closed 3 months ago
Some of the mocks might be called in an async manner, and thus the verification might fail because the method is not called yet.
It would be nice if it had some async feature similar to Quick/Nimble toEventually built-in in Mockable:
toEventually
// wait until routeToHome called once await verify(mockRouter).routeToHome().eventuallyCalled(count: .once)
I think I could help with this features. I'll create a PR for this.
@Kolos65 Here's the PR thanks!
Some of the mocks might be called in an async manner, and thus the verification might fail because the method is not called yet.
It would be nice if it had some async feature similar to Quick/Nimble
toEventually
built-in in Mockable: