ryanplusplus / mach.js

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

creating new MockObject inside of a when thunk breaks mach.ignoreMockedCallsWhen #30

Open h2oboi89 opened 7 years ago

h2oboi89 commented 7 years ago

creating the new MockObject resets the handler to the default handler

h2oboi89 commented 7 years ago

potentially store current handler in a global state and set that as the default handler?

ryanplusplus commented 7 years ago

👍