drashland / rhum

A test double library
https://drash.land/rhum
MIT License
92 stars 6 forks source link

feat: set arg expectations on methods #171

Open crookse opened 2 years ago

crookse commented 2 years ago

Summary

What:

Test double methods that can set up to return values should have arg expectations defined as well.

Why:

It's common to set up a method like "expect this method to take in this arg and return this value"

Acceptance Criteria

Below is a list of tasks that must be completed before this issue can be closed.

Example Pseudo Code (for implementation)

fake.method("blah").withArgs("hello").willReturn("world");