Hello,
I'm working on a project using streamline, and just ran into an interesting issue when using sinon.js stub library (
http://sinonjs.org/docs/#stubs) in a mocha test. If I attempt to stub a method on a collaborator's function that is managed by streamline, the stub never returns. I have attached an example file that shows this issue. To run this, you will need to do the following:
npm install -g mocha streamline
npm install sinon should
mocha --compilers _js:streamline/register exampleTest._js
I'm curious if anyone else has run into this, and if so, what their workarounds have been.
Thanks!