ryanplusplus / mach.js

Simple mocking framework for JavaScript inspired by CppUMock and designed for readability
MIT License
5 stars 2 forks source link

Callback #26

Closed h2oboi89 closed 8 years ago

h2oboi89 commented 8 years ago

Expectations now have the option to invoke a callback instead of merely returning a value synchronously or throwing an error.

h2oboi89 commented 8 years ago

This should be reviewed closely and probably expanded on test wise before merging. This was result of single 4 hour session, hasn't quite hit the proofread stage yet.