Yan C
Yan C
Same question here. I have a script that performs either a push or a clone depending on an algorithm, and I'd like to unit-test it. The regular way would be...
I can't inject, because my lib needs to instantiate multiple and unpredictable times, but I didn't try to stub on this prototype, I'll definitely do that. Thanks a lot !
Additional difficulty, I'm using `clone` as a promise. Considering the way you create them on the fly in `promise.js`, stubbing the prototype does not seem to be an option. Did...