How to verify mocks or stubs

22 views
Skip to first unread message

Sean Lee

unread,
Jun 20, 2017, 4:10:59 PM6/20/17
to Sinon.JS
I couldn't find a similar issue with a search, sorry if this is a duplicate post.

In some mock frameworks, you can validate that all of the setups have been called. Is there a way to do that with Sinon? Or any plans to support that?

something like:

thing.myApi = stub();
Sinon.verifyAll(); // throws because myApi() was not called.


Thanks
Reply all
Reply to author
Forward
0 new messages