wardbell / bardjs

Spec helpers for testing angular v.1.x apps with Mocha, Jasmine and QUnit
MIT License
178 stars 34 forks source link

Stub Replacement Funcs #19

Closed Barryrowe closed 8 years ago

Barryrowe commented 8 years ago

Changed the mockService function to actually sinon.stub provided replacement functions rather than just overwriting the function with the replacement function. This allows "dynamic" spying in multiple call scenarios.

Resolves Issue #18

wardbell commented 8 years ago

Thanks. I will review soon

wardbell commented 8 years ago

Agree.