ryanplusplus / mach.js

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

Make arguments expectation an extension #14

Closed h2oboi89 closed 8 years ago

h2oboi89 commented 8 years ago

Current:

Proposed: Bases:

Extensions:

ryanplusplus commented 8 years ago

All of the permutations for this are already available. Although it might simplify the implementation a bit, I think having slightly fewer ()s littered about means the extra code is worth maintaining.