bardjs
bardjs copied to clipboard
mockService now creates sinon stub instead of spy
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).