wardbell / bardjs

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

mockService now creates sinon stub instead of spy #31

Open TueCN opened 8 years ago

TueCN commented 8 years ago

Each property value of the config obj that is a non-function value can be created as a sinon stub. This makes it possible to dynamically configure the stub further while testing, to e.g. make conditional returns based on argument values (see http://sinonjs.org/docs/#stubs-api).