You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that the featured solution is using expect instead of allow for the simple stub based on the code present here and here. The README of this project recommends using allow for stubs so would really appreciate if you could clarify on what's the correct thing to use for this exercise so that one could have a clear differentiation between when to use allow and when to use expect.
From what I've learnt in general, we use expect when we mutate data or for command methods in general and we use allow for query methods. It would be great if you could share your thoughts on what's more appropriate here and why you think that either of expect or allow is the more appropriate one in the context of this exercise, Thank you.
The text was updated successfully, but these errors were encountered:
Dear Project Collaborators,
I see that the featured solution is using
expect
instead ofallow
for the simple stub based on the code present here and here. The README of this project recommends usingallow
for stubs so would really appreciate if you could clarify on what's the correct thing to use for this exercise so that one could have a clear differentiation between when to useallow
and when to useexpect
.From what I've learnt in general, we use
expect
when we mutate data or for command methods in general and we useallow
for query methods. It would be great if you could share your thoughts on what's more appropriate here and why you think that either ofexpect
orallow
is the more appropriate one in the context of this exercise, Thank you.The text was updated successfully, but these errors were encountered: