Skip to content

Featured solution uses expect instead of allow as per what's suggested in the README #4

@boddhisattva

Description

@boddhisattva

Dear Project Collaborators,

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions