drashland / rhum

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

feat(v2): spies #151

Closed crookse closed 2 years ago

crookse commented 2 years ago

Summary

What:

Add Spy() to mod.ts

Definition from https://martinfowler.com/bliki/TestDouble.html:

Spies are stubs that also record some information based on how they were called. One form of this might be an email service that records how many messages it was sent.

Why:

So we can have all five test doubles.

Acceptance Criteria

See #162 TODO list